diff options
author | Andreas Färber <afaerber@suse.de> | 2013-06-21 22:04:49 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-07-09 21:33:03 +0200 |
commit | 7fd2592dbcc0130e9999a739867a1b539c5ee853 (patch) | |
tree | 5d6fcc17cbc22e6c0a579475cd83615679b7f4f6 | |
parent | 5639c3f224bbe3095ce6584bc8a5ace68b6d8197 (diff) |
target-cris: Change gen_intermediate_code_internal() argument to CRISCPU
Also use bool type while at it.
Prepares for moving singlestep_enabled field to CPUState.
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andreas Färber <afaerber@suse.de>
-rw-r--r-- | target-cris/translate.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c index ee9ae22350..1de9743953 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -3162,9 +3162,10 @@ static void check_breakpoint(CPUCRISState *env, DisasContext *dc) /* generate intermediate code for basic block 'tb'. */ static inline void -gen_intermediate_code_internal(CPUCRISState *env, TranslationBlock *tb, - int search_pc) +gen_intermediate_code_internal(CRISCPU *cpu, TranslationBlock *tb, + bool search_pc) { + CPUCRISState *env = &cpu->env; uint16_t *gen_opc_end; uint32_t pc_start; unsigned int insn_len; @@ -3419,12 +3420,12 @@ gen_intermediate_code_internal(CPUCRISState *env, TranslationBlock *tb, void gen_intermediate_code (CPUCRISState *env, struct TranslationBlock *tb) { - gen_intermediate_code_internal(env, tb, 0); + gen_intermediate_code_internal(cris_env_get_cpu(env), tb, false); } void gen_intermediate_code_pc (CPUCRISState *env, struct TranslationBlock *tb) { - gen_intermediate_code_internal(env, tb, 1); + gen_intermediate_code_internal(cris_env_get_cpu(env), tb, true); } void cris_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, |