summaryrefslogtreecommitdiff
path: root/target-mips/helper.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-23 08:24:25 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-23 08:24:25 +0000
commitfd88b6abab9a4425505b292b5fedbad31d0dfe4f (patch)
tree33723cfca31d3cf54b6c9d103c002e34ab97c374 /target-mips/helper.c
parentdf1561e22df42643d769aacdcc7d6d239f243366 (diff)
downloadqemu-fd88b6abab9a4425505b292b5fedbad31d0dfe4f.tar.gz
The 24k wants more watch and srsmap registers.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2849 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/helper.c')
-rw-r--r--target-mips/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/helper.c b/target-mips/helper.c
index 306ddf0b6f..2dfaffc23f 100644
--- a/target-mips/helper.c
+++ b/target-mips/helper.c
@@ -381,7 +381,7 @@ void do_interrupt (CPUState *env)
break;
case EXCP_SRESET:
env->CP0_Status |= (1 << CP0St_SR);
- env->CP0_WatchLo = 0;
+ memset(env->CP0_WatchLo, 0, sizeof(*env->CP0_WatchLo));
goto set_error_EPC;
case EXCP_NMI:
env->CP0_Status |= (1 << CP0St_NMI);