[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 1/9] target-tricore: Add missing ULL suffix on 64 bit
From: |
Bastian Koppelmann |
Subject: |
[Qemu-devel] [PULL 1/9] target-tricore: Add missing ULL suffix on 64 bit constant |
Date: |
Mon, 26 Jan 2015 20:03:12 +0000 |
From: Peter Maydell <address@hidden>
Add a missing ULL suffix to a 64 bit constant: this suppresses a
compiler warning from mingw32 gcc.
Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Bastian Koppelmann <address@hidden>
---
target-tricore/op_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target-tricore/op_helper.c b/target-tricore/op_helper.c
index 13e2729..5704549 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);
--
2.2.2
- [Qemu-devel] [PULL 0/9] tricore patches, Bastian Koppelmann, 2015/01/26
- [Qemu-devel] [PULL 1/9] target-tricore: Add missing ULL suffix on 64 bit constant,
Bastian Koppelmann <=
- [Qemu-devel] [PULL 6/9] target-tricore: target-tricore: Add instructions of RR1 opcode format, that have 0x93 as first opcode, Bastian Koppelmann, 2015/01/26
- [Qemu-devel] [PULL 3/9] target-tricore: calculate av bits before saturation, Bastian Koppelmann, 2015/01/26
- [Qemu-devel] [PULL 5/9] target-tricore: split up suov32 into suov32_pos and suov32_neg, Bastian Koppelmann, 2015/01/26
- [Qemu-devel] [PULL 7/9] target-tricore: Add instructions of RR2 opcode format, Bastian Koppelmann, 2015/01/26
- [Qemu-devel] [PULL 4/9] target-tricore: Fix bugs found by coverity, Bastian Koppelmann, 2015/01/26
- [Qemu-devel] [PULL 8/9] target-tricore: Add instructions of RRPW opcode format, Bastian Koppelmann, 2015/01/26
- [Qemu-devel] [PULL 9/9] target-tricore: Add instructions of RRR opcode format, Bastian Koppelmann, 2015/01/26
- [Qemu-devel] [PULL 2/9] target-tricore: Several translator and cpu model fixes, Bastian Koppelmann, 2015/01/26
- Re: [Qemu-devel] [PULL 0/9] tricore patches, Peter Maydell, 2015/01/27