diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2014-12-23 22:24:09 +0000 |
|---|---|---|
| committer | Bastian Koppelmann <kbastian@mail.uni-paderborn.de> | 2015-01-26 19:56:45 +0000 |
| commit | 452e3d49d871f311f7b884dc69160c3e0973b050 (patch) | |
| tree | c3de6f7adbfd0bffff226b79c555d13b0d2b9b7e | |
| parent | 1ac0206b2ae1ffaeec564f110664a3a77bafafd2 (diff) | |
| download | focaccia-qemu-452e3d49d871f311f7b884dc69160c3e0973b050.tar.gz focaccia-qemu-452e3d49d871f311f7b884dc69160c3e0973b050.zip | |
target-tricore: Add missing ULL suffix on 64 bit constant
Add a missing ULL suffix to a 64 bit constant: this suppresses a compiler warning from mingw32 gcc. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
| -rw-r--r-- | target-tricore/op_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-tricore/op_helper.c b/target-tricore/op_helper.c index 13e27291c1..57045490bb 100644 --- a/target-tricore/op_helper.c +++ b/target-tricore/op_helper.c @@ -994,7 +994,7 @@ uint32_t helper_sha(CPUTriCoreState *env, target_ulong r1, target_ulong r2) } else if (shift_count > 0) { result = t1 << shift_count; /* calc carry */ - env->PSW_USB_C = ((result & 0xffffffff00000000) != 0); + env->PSW_USB_C = ((result & 0xffffffff00000000ULL) != 0); /* calc v */ env->PSW_USB_V = (((result > 0x7fffffffLL) || (result < -0x80000000LL)) << 31); |