diff options
author | Lluís Vilanova | 2017-07-14 10:17:35 +0200 |
---|---|---|
committer | Richard Henderson | 2017-07-19 23:45:16 +0200 |
commit | 9c489ea6bed134fecfd556b439c68bba48fbe102 (patch) | |
tree | 3d54a182709bc45c16e276cc33e36f01cbe7f4ee /target/lm32/translate.c | |
parent | tcg/tci: enable bswap16_i64 (diff) | |
download | qemu-9c489ea6bed134fecfd556b439c68bba48fbe102.tar.gz qemu-9c489ea6bed134fecfd556b439c68bba48fbe102.tar.xz qemu-9c489ea6bed134fecfd556b439c68bba48fbe102.zip |
tcg: Pass generic CPUState to gen_intermediate_code()
Needed to implement a target-agnostic gen_intermediate_code()
in the future.
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Alex Benneé <alex.benee@linaro.org>
Reviewed-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Message-Id: <150002025498.22386.18051908483085660588.stgit@frigg.lan>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target/lm32/translate.c')
-rw-r--r-- | target/lm32/translate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/lm32/translate.c b/target/lm32/translate.c index 692882f447..f68f372f15 100644 --- a/target/lm32/translate.c +++ b/target/lm32/translate.c @@ -1044,10 +1044,10 @@ static inline void decode(DisasContext *dc, uint32_t ir) } /* generate intermediate code for basic block 'tb'. */ -void gen_intermediate_code(CPULM32State *env, struct TranslationBlock *tb) +void gen_intermediate_code(CPUState *cs, struct TranslationBlock *tb) { + CPULM32State *env = cs->env_ptr; LM32CPU *cpu = lm32_env_get_cpu(env); - CPUState *cs = CPU(cpu); struct DisasContext ctx, *dc = &ctx; uint32_t pc_start; uint32_t next_page_start; |