aboutsummaryrefslogtreecommitdiff
path: root/target/moxie/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/moxie/cpu.c')
-rw-r--r--target/moxie/cpu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/target/moxie/cpu.c b/target/moxie/cpu.c
index b0be4a7551..927b1a1e44 100644
--- a/target/moxie/cpu.c
+++ b/target/moxie/cpu.c
@@ -45,10 +45,8 @@ static void moxie_cpu_reset(CPUState *s)
mcc->parent_reset(s);
- memset(env, 0, sizeof(CPUMoxieState));
+ memset(env, 0, offsetof(CPUMoxieState, end_reset_fields));
env->pc = 0x1000;
-
- tlb_flush(s, 1);
}
static void moxie_cpu_disas_set_info(CPUState *cpu, disassemble_info *info)