]> Git Repo - qemu.git/blobdiff - target/ppc/cpu.h
target/ppc: switch fpr/vsrl registers so all VSX registers are in host endian order
[qemu.git] / target / ppc / cpu.h
index 7e18866ee27e686e0435e23acf2476707b452c95..612dd05e944d362d917d48038479393a4ec8c1e9 100644 (file)
@@ -2585,7 +2585,7 @@ static inline bool lsw_reg_in_range(int start, int nregs, int rx)
 
 static inline int fpr_offset(int i)
 {
-    return offsetof(CPUPPCState, vsr[i].u64[0]);
+    return offsetof(CPUPPCState, vsr[i].VsrD(0));
 }
 
 static inline uint64_t *cpu_fpr_ptr(CPUPPCState *env, int i)
@@ -2595,7 +2595,7 @@ static inline uint64_t *cpu_fpr_ptr(CPUPPCState *env, int i)
 
 static inline int vsrl_offset(int i)
 {
-    return offsetof(CPUPPCState, vsr[i].u64[1]);
+    return offsetof(CPUPPCState, vsr[i].VsrD(1));
 }
 
 static inline int vsr_full_offset(int i)
This page took 0.024355 seconds and 4 git commands to generate.