]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
target-ppc/translate.c: Use ULL suffix for 64 bit constants
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Feb 2014 19:47:27 +0000 (19:47 +0000)
committerAlexander Graf <agraf@suse.de>
Wed, 5 Mar 2014 02:07:00 +0000 (03:07 +0100)
64 bit constants need the "ULL" suffix, not just "UL", because
on 32 bit platforms 'long' is not large enough and this will
cause a compiler warning.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate.c

index cf8f98ad1dbe538c9b53fbe98d0829850cbdd31f..051693b55a7a304640a3fce32ab6e4864bb4ebad 100644 (file)
@@ -7727,8 +7727,8 @@ static void gen_xxpermdi(DisasContext *ctx)
 #define OP_NABS 2
 #define OP_NEG 3
 #define OP_CPSGN 4
-#define SGN_MASK_DP  0x8000000000000000ul
-#define SGN_MASK_SP 0x8000000080000000ul
+#define SGN_MASK_DP  0x8000000000000000ull
+#define SGN_MASK_SP 0x8000000080000000ull
 
 #define VSX_SCALAR_MOVE(name, op, sgn_mask)                       \
 static void glue(gen_, name)(DisasContext * ctx)                  \