summaryrefslogtreecommitdiff
path: root/target-mips
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-29 00:49:32 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-29 00:49:32 +0000
commit1b6fd0bc551969c61f94f13cbcb013269ee3a07c (patch)
treeb0d0242a706c228c44e5d64504f4738d267d1157 /target-mips
parent3cbee15b9a6be17645e908bf7706d582c3e17156 (diff)
downloadqemu-1b6fd0bc551969c61f94f13cbcb013269ee3a07c.tar.gz
Restrict CP0_PerfCnt to legal values.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3476 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/op.c b/target-mips/op.c
index f29134567c..569c2f2a9b 100644
--- a/target-mips/op.c
+++ b/target-mips/op.c
@@ -1971,7 +1971,7 @@ void op_mtc0_depc (void)
void op_mtc0_performance0 (void)
{
- env->CP0_Performance0 = T0; /* XXX */
+ env->CP0_Performance0 = T0 & 0x000007ff;
RETURN();
}