Commit 1b6fd0bc551969c61f94f13cbcb013269ee3a07c

Authored by ths
1 parent 3cbee15b

Restrict CP0_PerfCnt to legal values.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3476 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-mips/op.c
@@ -1971,7 +1971,7 @@ void op_mtc0_depc (void) @@ -1971,7 +1971,7 @@ void op_mtc0_depc (void)
1971 1971
1972 void op_mtc0_performance0 (void) 1972 void op_mtc0_performance0 (void)
1973 { 1973 {
1974 - env->CP0_Performance0 = T0; /* XXX */ 1974 + env->CP0_Performance0 = T0 & 0x000007ff;
1975 RETURN(); 1975 RETURN();
1976 } 1976 }
1977 1977