diff options
author | Richard Henderson | 2019-03-23 01:00:56 +0100 |
---|---|---|
committer | Richard Henderson | 2019-06-10 16:03:42 +0200 |
commit | 677c4d69ac21961e76a386f9bfc892a44923acc0 (patch) | |
tree | 5c37cb3a06f079d173a8ad9a85ca9a307cfc8e8f /target/riscv | |
parent | target/xtensa: Use env_cpu, env_archcpu (diff) | |
download | qemu-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/riscv')
-rw-r--r-- | target/riscv/cpu.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 29a1e08f03..d9611eaced 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -239,8 +239,6 @@ extern const char * const riscv_fpr_regnames[]; extern const char * const riscv_excp_names[]; extern const char * const riscv_intr_names[]; -#define ENV_OFFSET offsetof(RISCVCPU, env) - void riscv_cpu_do_interrupt(CPUState *cpu); int riscv_cpu_gdb_read_register(CPUState *cpu, uint8_t *buf, int reg); int riscv_cpu_gdb_write_register(CPUState *cpu, uint8_t *buf, int reg); |