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>
if (temp128 == 0) {
temp[0] = 0x0FFFFFFFF;
} else {
- temp[0] = 0x0100000000;
+ temp[0] = 0x0100000000ULL;
}
set_DSPControl_overflow_flag(1, 23, env);
}
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);
}