mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 11:23:43 +08:00
target-sparc: Change gen_intermediate_code_internal() argument to SPARCCPU
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
38e308103d
commit
68a471556d
@ -5219,9 +5219,11 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void gen_intermediate_code_internal(TranslationBlock * tb,
|
static inline void gen_intermediate_code_internal(SPARCCPU *cpu,
|
||||||
int spc, CPUSPARCState *env)
|
TranslationBlock *tb,
|
||||||
|
bool spc)
|
||||||
{
|
{
|
||||||
|
CPUSPARCState *env = &cpu->env;
|
||||||
target_ulong pc_start, last_pc;
|
target_ulong pc_start, last_pc;
|
||||||
uint16_t *gen_opc_end;
|
uint16_t *gen_opc_end;
|
||||||
DisasContext dc1, *dc = &dc1;
|
DisasContext dc1, *dc = &dc1;
|
||||||
@ -5347,12 +5349,12 @@ static inline void gen_intermediate_code_internal(TranslationBlock * tb,
|
|||||||
|
|
||||||
void gen_intermediate_code(CPUSPARCState * env, TranslationBlock * tb)
|
void gen_intermediate_code(CPUSPARCState * env, TranslationBlock * tb)
|
||||||
{
|
{
|
||||||
gen_intermediate_code_internal(tb, 0, env);
|
gen_intermediate_code_internal(sparc_env_get_cpu(env), tb, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void gen_intermediate_code_pc(CPUSPARCState * env, TranslationBlock * tb)
|
void gen_intermediate_code_pc(CPUSPARCState * env, TranslationBlock * tb)
|
||||||
{
|
{
|
||||||
gen_intermediate_code_internal(tb, 1, env);
|
gen_intermediate_code_internal(sparc_env_get_cpu(env), tb, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void gen_intermediate_code_init(CPUSPARCState *env)
|
void gen_intermediate_code_init(CPUSPARCState *env)
|
||||||
|
Loading…
Reference in New Issue
Block a user