diff --git a/qemu/target-mips/helper.c b/qemu/target-mips/helper.c index 511b5be6..35769870 100644 --- a/qemu/target-mips/helper.c +++ b/qemu/target-mips/helper.c @@ -526,7 +526,7 @@ void mips_cpu_do_interrupt(CPUState *cs) break; case EXCP_SRESET: env->CP0_Status |= (1 << CP0St_SR); - memset(env->CP0_WatchLo, 0, sizeof(*env->CP0_WatchLo)); + memset(env->CP0_WatchLo, 0, sizeof(env->CP0_WatchLo)); goto set_error_EPC; case EXCP_NMI: env->CP0_Status |= (1 << CP0St_NMI);