Skip to contentSkip to conversation

target-tricore: Add missing ULL suffix on 64 bit constant

PATCH Applied Peter Maydell 2 participants 4 messages Dec 23, 2014 – Jan 19, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 target-tricore/op_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target-tricore/op_helper.c +1 -1
index 13e2729..5704549 100644
@@ -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);
Signature · 1 line
1.9.1
#1 lore raw
Quoted 8 lines · Peter Maydell

Add a missing ULL suffix to a 64 bit constant: this suppresses a compiler warning from mingw32 gcc.

---
  target-tricore/op_helper.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, applied it to my tricore-next branch.

Cheers,
Bastian

#2 lore raw
Quoted 6 lines · Bastian Koppelmann
Quoted 4 lines · Peter Maydell

Add a missing ULL suffix to a 64 bit constant: this suppresses a compiler warning from mingw32 gcc.

Quoted 6 lines
Quoted 5 lines
---
  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

#3 lore raw
Quoted 6 lines · Peter Maydell
Quoted 4 lines · Bastian Koppelmann
Quoted 3 lines · Peter Maydell

Add a missing ULL suffix to a 64 bit constant: this suppresses a compiler warning from mingw32 gcc.

Quoted 7 lines
Quoted 6 lines
Quoted 5 lines
---
   target-tricore/op_helper.c | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, applied it to my tricore-next branch.

Ping?

Hi Peter,

Quoted 4 lines

(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.)

thanks for the effort, but it is not forgotten. I'm still working on a patchset for the next pullreq. I'm sending the patchset to the list this week and depending on Richards feedback I will send a pullreq this or next week , but it is hard to tell. If this is too long for you, feel free to add your patch to the misc pull.

Cheers,
Bastian

Quoted 1 line

-- PMM