target-xtensa: Change gen_intermediate_code_internal() arg to XtensaCPU
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>
This commit is contained in:
parent
62a8055936
commit
90b85b7706
@ -2876,9 +2876,10 @@ static void gen_ibreak_check(CPUXtensaState *env, DisasContext *dc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline
|
static inline
|
||||||
void gen_intermediate_code_internal(CPUXtensaState *env,
|
void gen_intermediate_code_internal(XtensaCPU *cpu,
|
||||||
TranslationBlock *tb, int search_pc)
|
TranslationBlock *tb, bool search_pc)
|
||||||
{
|
{
|
||||||
|
CPUXtensaState *env = &cpu->env;
|
||||||
DisasContext dc;
|
DisasContext dc;
|
||||||
int insn_count = 0;
|
int insn_count = 0;
|
||||||
int j, lj = -1;
|
int j, lj = -1;
|
||||||
@ -3007,12 +3008,12 @@ void gen_intermediate_code_internal(CPUXtensaState *env,
|
|||||||
|
|
||||||
void gen_intermediate_code(CPUXtensaState *env, TranslationBlock *tb)
|
void gen_intermediate_code(CPUXtensaState *env, TranslationBlock *tb)
|
||||||
{
|
{
|
||||||
gen_intermediate_code_internal(env, tb, 0);
|
gen_intermediate_code_internal(xtensa_env_get_cpu(env), tb, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void gen_intermediate_code_pc(CPUXtensaState *env, TranslationBlock *tb)
|
void gen_intermediate_code_pc(CPUXtensaState *env, TranslationBlock *tb)
|
||||||
{
|
{
|
||||||
gen_intermediate_code_internal(env, tb, 1);
|
gen_intermediate_code_internal(xtensa_env_get_cpu(env), tb, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void xtensa_cpu_dump_state(CPUState *cs, FILE *f,
|
void xtensa_cpu_dump_state(CPUState *cs, FILE *f,
|
||||||
|
Loading…
Reference in New Issue
Block a user