aboutsummaryrefslogtreecommitdiff
path: root/target-s390x
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-06-21 22:22:09 +0200
committerAndreas Färber <afaerber@suse.de>2013-07-09 21:33:03 +0200
commitd9916c23d3024ce2ae7f6300a7b4e62780e4632b (patch)
tree7a2708eb40c2a986bc9a0dde7fcfa8bc0215bcc6 /target-s390x
parent213fe1f5135abe052b634e08fddf6e9945f0eeed (diff)
downloadqemu-d9916c23d3024ce2ae7f6300a7b4e62780e4632b.zip
qemu-d9916c23d3024ce2ae7f6300a7b4e62780e4632b.tar.gz
qemu-d9916c23d3024ce2ae7f6300a7b4e62780e4632b.tar.bz2
target-s390x: Change gen_intermediate_code_internal() argument to S390CPU
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>
Diffstat (limited to 'target-s390x')
-rw-r--r--target-s390x/translate.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/target-s390x/translate.c b/target-s390x/translate.c
index cd9880e..cba7b87 100644
--- a/target-s390x/translate.c
+++ b/target-s390x/translate.c
@@ -4736,10 +4736,11 @@ static ExitStatus translate_one(CPUS390XState *env, DisasContext *s)
return ret;
}
-static inline void gen_intermediate_code_internal(CPUS390XState *env,
+static inline void gen_intermediate_code_internal(S390CPU *cpu,
TranslationBlock *tb,
- int search_pc)
+ bool search_pc)
{
+ CPUS390XState *env = &cpu->env;
DisasContext dc;
target_ulong pc_start;
uint64_t next_page_start;
@@ -4872,12 +4873,12 @@ static inline void gen_intermediate_code_internal(CPUS390XState *env,
void gen_intermediate_code (CPUS390XState *env, struct TranslationBlock *tb)
{
- gen_intermediate_code_internal(env, tb, 0);
+ gen_intermediate_code_internal(s390_env_get_cpu(env), tb, false);
}
void gen_intermediate_code_pc (CPUS390XState *env, struct TranslationBlock *tb)
{
- gen_intermediate_code_internal(env, tb, 1);
+ gen_intermediate_code_internal(s390_env_get_cpu(env), tb, true);
}
void restore_state_to_opc(CPUS390XState *env, TranslationBlock *tb, int pc_pos)