diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2019-03-22 17:00:56 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2019-06-10 07:03:42 -0700 |
| commit | 677c4d69ac21961e76a386f9bfc892a44923acc0 (patch) | |
| tree | 5c37cb3a06f079d173a8ad9a85ca9a307cfc8e8f /include/exec | |
| parent | 92fddfbd1792cb6009f869c47e7ea55a741fe2e3 (diff) | |
| download | focaccia-qemu-677c4d69ac21961e76a386f9bfc892a44923acc0.tar.gz focaccia-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 'include/exec')
| -rw-r--r-- | include/exec/gen-icount.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/exec/gen-icount.h b/include/exec/gen-icount.h index 24f7991781..9cfa6ccce5 100644 --- a/include/exec/gen-icount.h +++ b/include/exec/gen-icount.h @@ -5,6 +5,8 @@ /* Helpers for instruction counting code generation. */ +#define ENV_OFFSET offsetof(ArchCPU, env) + static TCGOp *icount_start_insn; static inline void gen_tb_start(TranslationBlock *tb) |