aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2012-11-03 18:48:35 +0000
committerAurelien Jarno <aurelien@aurel32.net>2012-11-05 08:02:37 +0100
commit1cfd981ff1e8ff0858cd71cfae0c7c7ba741f380 (patch)
treece4613a2ffc5cea0431e95eedda7084012ed5397
parent30ea833941a7de51454cf99913f5edb3e7e21c0d (diff)
downloadqemu-1cfd981ff1e8ff0858cd71cfae0c7c7ba741f380.zip
qemu-1cfd981ff1e8ff0858cd71cfae0c7c7ba741f380.tar.gz
qemu-1cfd981ff1e8ff0858cd71cfae0c7c7ba741f380.tar.bz2
target-mips: use ULL for 64 bit constants
Fix build on a 32 bit host: CC mips-softmmu/target-mips/dsp_helper.o /src/qemu/target-mips/dsp_helper.c: In function 'helper_dextr_rs_w': /src/qemu/target-mips/dsp_helper.c:3556: error: integer constant is too large for 'long' type /src/qemu/target-mips/dsp_helper.c: In function 'helper_extr_s_h': /src/qemu/target-mips/dsp_helper.c:3656: error: integer constant is too large for 'long' type Signed-off-by: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r--target-mips/dsp_helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-mips/dsp_helper.c b/target-mips/dsp_helper.c
index b59133e..e7949c2 100644
--- a/target-mips/dsp_helper.c
+++ b/target-mips/dsp_helper.c
@@ -3553,7 +3553,7 @@ target_ulong helper_dextr_rs_w(target_ulong ac, target_ulong shift,
if (temp128 == 0) {
temp[0] = 0x0FFFFFFFF;
} else {
- temp[0] = 0x0100000000;
+ temp[0] = 0x0100000000ULL;
}
set_DSPControl_overflow_flag(1, 23, env);
}
@@ -3653,7 +3653,7 @@ target_ulong helper_extr_s_h(target_ulong ac, target_ulong shift,
if (temp > (int64_t)0x7FFF) {
temp = 0x00007FFF;
set_DSPControl_overflow_flag(1, 23, env);
- } else if (temp < (int64_t)0xFFFFFFFFFFFF8000) {
+ } else if (temp < (int64_t)0xFFFFFFFFFFFF8000ULL) {
temp = 0xFFFF8000;
set_DSPControl_overflow_flag(1, 23, env);
}