Skip to contentSkip to conversation

Fix type of spe_acc.

PATCH Applied Nathan Froyd 2 participants 2 messages Dec 16, 2008 – Dec 18, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix type of spe_acc.

ACC is a 64-bit register and needs to be specified as such regardless of the target.

---
 target-ppc/cpu.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
target-ppc/cpu.h +1 -1
index 5bfa4a0..113bba5 100644
@@ -609,7 +609,7 @@ struct CPUPPCState {
     ppc_avr_t avr[32];
     uint32_t vscr;
     /* SPE registers */
-    target_ulong spe_acc;
+    uint64_t spe_acc;
     float_status spe_status;
     uint32_t spe_fscr;
 
Signature · 1 line
1.6.0.5
#1 lore raw
Quoted 4 lines · Nathan Froyd

ACC is a 64-bit register and needs to be specified as such regardless of the target.

Thanks, applied.

Quoted 23 lines
---
 target-ppc/cpu.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
target-ppc/cpu.h +1 -1
index 5bfa4a0..113bba5 100644
@@ -609,7 +609,7 @@ struct CPUPPCState {
     ppc_avr_t avr[32];
     uint32_t vscr;
     /* SPE registers */
-    target_ulong spe_acc;
+    uint64_t spe_acc;
     float_status spe_status;
     uint32_t spe_fscr;
 
Signature · 1 line
1.6.0.5
Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net