diff options
author | Andreas Färber <afaerber@suse.de> | 2012-04-02 13:31:59 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-04-04 17:34:44 +0200 |
commit | 1ac1a7499bcb44174735780e0bd0421a1ac7a323 (patch) | |
tree | ca89f635c9bf4f7411e99ee7503c24a11cd19525 /target-s390x/helper.c | |
parent | 29e4bcb26b80f975920508c83a9f24f29eb6bc1a (diff) | |
download | qemu-1ac1a7499bcb44174735780e0bd0421a1ac7a323.zip qemu-1ac1a7499bcb44174735780e0bd0421a1ac7a323.tar.gz qemu-1ac1a7499bcb44174735780e0bd0421a1ac7a323.tar.bz2 |
target-s390x: QOM'ify CPU reset
Move code from cpu_state_reset() to s390_cpu_reset().
Signed-off-by: Andreas Färber <afaerber@suse.de>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'target-s390x/helper.c')
-rw-r--r-- | target-s390x/helper.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/target-s390x/helper.c b/target-s390x/helper.c index ae57ab3..cd3e8f5 100644 --- a/target-s390x/helper.c +++ b/target-s390x/helper.c @@ -97,7 +97,7 @@ CPUS390XState *cpu_s390x_init(const char *cpu_model) env->cpu_model_str = cpu_model; env->cpu_num = cpu_num++; env->ext_index = -1; - cpu_state_reset(env); + cpu_reset(CPU(cpu)); qemu_init_vcpu(env); return env; } @@ -123,15 +123,7 @@ int cpu_s390x_handle_mmu_fault (CPUS390XState *env, target_ulong address, int rw void cpu_state_reset(CPUS390XState *env) { - if (qemu_loglevel_mask(CPU_LOG_RESET)) { - qemu_log("CPU Reset (CPU %d)\n", env->cpu_index); - log_cpu_state(env, 0); - } - - memset(env, 0, offsetof(CPUS390XState, breakpoints)); - /* FIXME: reset vector? */ - tlb_flush(env, 1); - s390_add_running_cpu(env); + cpu_reset(ENV_GET_CPU(env)); } #ifndef CONFIG_USER_ONLY |