Commit c50da3df61eae8b0c41b7591e315aaf5e9e8d507

Authored by ths
1 parent 4e7a4a4e

Proper handling of reserved bits in the context register.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2644 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-mips/op.c
@@ -1293,7 +1293,7 @@ void op_mtc0_entrylo1 (void) @@ -1293,7 +1293,7 @@ void op_mtc0_entrylo1 (void)
1293 1293
1294 void op_mtc0_context (void) 1294 void op_mtc0_context (void)
1295 { 1295 {
1296 - env->CP0_Context = (env->CP0_Context & ~0x007FFFFF) | (T0 & 0x007FFFF0); 1296 + env->CP0_Context = (env->CP0_Context & ~0x007FFFFF) | (T0 & ~0x007FFFFF);
1297 RETURN(); 1297 RETURN();
1298 } 1298 }
1299 1299