diff options
author | Andreas Färber <afaerber@suse.de> | 2013-06-21 22:19:32 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-07-09 21:33:03 +0200 |
commit | 213fe1f5135abe052b634e08fddf6e9945f0eeed (patch) | |
tree | 7f623a936ae217ea876a4043457a3a476a599c20 | |
parent | 6429db34c11f8cbb2af446a9c1c80395794e6113 (diff) | |
download | qemu-213fe1f5135abe052b634e08fddf6e9945f0eeed.zip qemu-213fe1f5135abe052b634e08fddf6e9945f0eeed.tar.gz qemu-213fe1f5135abe052b634e08fddf6e9945f0eeed.tar.bz2 |
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: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andreas Färber <afaerber@suse.de>
-rw-r--r-- | target-ppc/translate.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 3643863..eb96272 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -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, - int search_pc) + bool search_pc) { + CPUPPCState *env = &cpu->env; DisasContext ctx, *ctxp = &ctx; opc_handler_t **table, *handler; target_ulong pc_start; @@ -9917,12 +9918,12 @@ static inline void gen_intermediate_code_internal(CPUPPCState *env, 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) { - 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) |