From: ths Date: Mon, 9 Apr 2007 14:16:30 +0000 (+0000) Subject: Proper handling of reserved bits in the context register. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c50da3df61eae8b0c41b7591e315aaf5e9e8d507;p=qemu.git 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 --- diff --git a/target-mips/op.c b/target-mips/op.c index d7f0306fdd..4eb8a8926d 100644 --- a/target-mips/op.c +++ b/target-mips/op.c @@ -1293,7 +1293,7 @@ void op_mtc0_entrylo1 (void) void op_mtc0_context (void) { - env->CP0_Context = (env->CP0_Context & ~0x007FFFFF) | (T0 & 0x007FFFF0); + env->CP0_Context = (env->CP0_Context & ~0x007FFFFF) | (T0 & ~0x007FFFFF); RETURN(); }