summaryrefslogtreecommitdiffstats
path: root/target/ppc
diff options
context:
space:
mode:
authorRichard Henderson2019-03-23 01:00:56 +0100
committerRichard Henderson2019-06-10 16:03:42 +0200
commit677c4d69ac21961e76a386f9bfc892a44923acc0 (patch)
tree5c37cb3a06f079d173a8ad9a85ca9a307cfc8e8f /target/ppc
parenttarget/xtensa: Use env_cpu, env_archcpu (diff)
downloadqemu-677c4d69ac21961e76a386f9bfc892a44923acc0.tar.gz
qemu-677c4d69ac21961e76a386f9bfc892a44923acc0.tar.xz
qemu-677c4d69ac21961e76a386f9bfc892a44923acc0.zip
cpu: Move ENV_OFFSET to exec/gen-icount.h
Now that we have ArchCPU, we can define this generically, in the one place that needs it. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/ppc')
-rw-r--r--target/ppc/cpu.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h
index 73ef868a7b..73b92c189c 100644
--- a/target/ppc/cpu.h
+++ b/target/ppc/cpu.h
@@ -1203,7 +1203,6 @@ struct PowerPCCPU {
int32_t mig_slb_nr;
};
-#define ENV_OFFSET offsetof(PowerPCCPU, env)
PowerPCCPUClass *ppc_cpu_class_by_pvr(uint32_t pvr);
PowerPCCPUClass *ppc_cpu_class_by_pvr_mask(uint32_t pvr);