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>
This commit is contained in:
Richard Henderson 2019-03-22 17:00:56 -07:00
parent 92fddfbd17
commit 677c4d69ac
22 changed files with 2 additions and 24 deletions

View file

@ -559,8 +559,6 @@ struct XtensaCPU {
CPUXtensaState env;
};
#define ENV_OFFSET offsetof(XtensaCPU, env)
bool xtensa_cpu_tlb_fill(CPUState *cs, vaddr address, int size,
MMUAccessType access_type, int mmu_idx,