提交 213fe1f5 编写于 作者: A Andreas Färber

target-ppc: Change gen_intermediate_code_internal() argument to PowerPCCPU

Also use bool type while at it.

Prepares for moving singlestep_enabled field to CPUState.
Reviewed-by: NRichard Henderson <rth@twiddle.net>
Signed-off-by: NAndreas Färber <afaerber@suse.de>
上级 6429db34
...@@ -9726,10 +9726,11 @@ void ppc_cpu_dump_statistics(CPUState *cs, FILE*f, ...@@ -9726,10 +9726,11 @@ void ppc_cpu_dump_statistics(CPUState *cs, FILE*f,
} }
/*****************************************************************************/ /*****************************************************************************/
static inline void gen_intermediate_code_internal(CPUPPCState *env, static inline void gen_intermediate_code_internal(PowerPCCPU *cpu,
TranslationBlock *tb, TranslationBlock *tb,
int search_pc) bool search_pc)
{ {
CPUPPCState *env = &cpu->env;
DisasContext ctx, *ctxp = &ctx; DisasContext ctx, *ctxp = &ctx;
opc_handler_t **table, *handler; opc_handler_t **table, *handler;
target_ulong pc_start; target_ulong pc_start;
...@@ -9917,12 +9918,12 @@ static inline void gen_intermediate_code_internal(CPUPPCState *env, ...@@ -9917,12 +9918,12 @@ static inline void gen_intermediate_code_internal(CPUPPCState *env,
void gen_intermediate_code (CPUPPCState *env, struct TranslationBlock *tb) void gen_intermediate_code (CPUPPCState *env, struct TranslationBlock *tb)
{ {
gen_intermediate_code_internal(env, tb, 0); gen_intermediate_code_internal(ppc_env_get_cpu(env), tb, false);
} }
void gen_intermediate_code_pc (CPUPPCState *env, struct TranslationBlock *tb) void gen_intermediate_code_pc (CPUPPCState *env, struct TranslationBlock *tb)
{ {
gen_intermediate_code_internal(env, tb, 1); gen_intermediate_code_internal(ppc_env_get_cpu(env), tb, true);
} }
void restore_state_to_opc(CPUPPCState *env, TranslationBlock *tb, int pc_pos) void restore_state_to_opc(CPUPPCState *env, TranslationBlock *tb, int pc_pos)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册