aboutsummaryrefslogtreecommitdiff
path: root/target-microblaze
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-06-21 22:14:44 +0200
committerAndreas Färber <afaerber@suse.de>2013-07-09 21:33:03 +0200
commit4a274212f03adaf8b5971cc39d460335392a97f6 (patch)
tree3be25b74356abe13a901f8557287f62eb8364e8c /target-microblaze
parentc296b15b7c2425a2973ad0e63810029913511b51 (diff)
downloadqemu-4a274212f03adaf8b5971cc39d460335392a97f6.zip
qemu-4a274212f03adaf8b5971cc39d460335392a97f6.tar.gz
qemu-4a274212f03adaf8b5971cc39d460335392a97f6.tar.bz2
target-microblaze: Change gen_intermediate_code_internal() argument types
Use MicroBlazeCPU and bool. Prepares for changing log_cpu_state() argument to CPUState and for moving singlestep_enabled field to CPUState. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-microblaze')
-rw-r--r--target-microblaze/translate.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c
index 27da4bf..b5cb141 100644
--- a/target-microblaze/translate.c
+++ b/target-microblaze/translate.c
@@ -1738,9 +1738,10 @@ static void check_breakpoint(CPUMBState *env, DisasContext *dc)
/* generate intermediate code for basic block 'tb'. */
static inline void
-gen_intermediate_code_internal(CPUMBState *env, TranslationBlock *tb,
- int search_pc)
+gen_intermediate_code_internal(MicroBlazeCPU *cpu, TranslationBlock *tb,
+ bool search_pc)
{
+ CPUMBState *env = &cpu->env;
uint16_t *gen_opc_end;
uint32_t pc_start;
int j, lj;
@@ -1941,12 +1942,12 @@ gen_intermediate_code_internal(CPUMBState *env, TranslationBlock *tb,
void gen_intermediate_code (CPUMBState *env, struct TranslationBlock *tb)
{
- gen_intermediate_code_internal(env, tb, 0);
+ gen_intermediate_code_internal(mb_env_get_cpu(env), tb, false);
}
void gen_intermediate_code_pc (CPUMBState *env, struct TranslationBlock *tb)
{
- gen_intermediate_code_internal(env, tb, 1);
+ gen_intermediate_code_internal(mb_env_get_cpu(env), tb, true);
}
void mb_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf,