summaryrefslogtreecommitdiff
path: root/target-sh4/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-sh4/cpu.c')
-rw-r--r--target-sh4/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sh4/cpu.c b/target-sh4/cpu.c
index a1a177fa88..e4858a03ed 100644
--- a/target-sh4/cpu.c
+++ b/target-sh4/cpu.c
@@ -31,7 +31,7 @@ static void superh_cpu_reset(CPUState *s)
CPUSH4State *env = &cpu->env;
if (qemu_loglevel_mask(CPU_LOG_RESET)) {
- qemu_log("CPU Reset (CPU %d)\n", env->cpu_index);
+ qemu_log("CPU Reset (CPU %d)\n", s->cpu_index);
log_cpu_state(env, 0);
}