Message ID | 1419373449-17900-1-git-send-email-peter.maydell@linaro.org |
---|---|
State | Superseded |
Headers | show |
On 24 December 2014 at 00:03, Bastian Koppelmann <kbastian@mail.uni-paderborn.de> wrote: > > On 12/23/2014 10:24 PM, Peter Maydell wrote: >> >> 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> >> --- >> target-tricore/op_helper.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> > Thanks, applied it to my tricore-next branch. Ping? (I'm putting together a "miscellaneous stuff from me that's got forgotten" pull, so I could put it in that if you don't have any other tricore stuff queued and don't want to do a pullreq for a one line fix.) -- PMM
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);
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> --- target-tricore/op_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)