提交 703eaf37 编写于 作者: T ths

Don't decode CP0 XContext on 32bit MIPS.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2812 c046a42c-6fe2-441c-8c8c-71466251a162
上级 f2e9ebef
...@@ -2190,10 +2190,11 @@ static void gen_mfc0 (DisasContext *ctx, int reg, int sel) ...@@ -2190,10 +2190,11 @@ static void gen_mfc0 (DisasContext *ctx, int reg, int sel)
case 20: case 20:
switch (sel) { switch (sel) {
case 0: case 0:
/* 64 bit MMU only */ #ifdef TARGET_MIPS64
gen_op_mfc0_xcontext(); gen_op_mfc0_xcontext();
rn = "XContext"; rn = "XContext";
break; break;
#endif
default: default:
goto die; goto die;
} }
...@@ -2788,10 +2789,11 @@ static void gen_mtc0 (DisasContext *ctx, int reg, int sel) ...@@ -2788,10 +2789,11 @@ static void gen_mtc0 (DisasContext *ctx, int reg, int sel)
case 20: case 20:
switch (sel) { switch (sel) {
case 0: case 0:
/* 64 bit MMU only */ #ifdef TARGET_MIPS64
/* Nothing writable in lower 32 bits */ /* Nothing writable in lower 32 bits */
rn = "XContext"; rn = "XContext";
break; break;
#endif
default: default:
goto die; goto die;
} }
...@@ -3377,10 +3379,11 @@ static void gen_dmfc0 (DisasContext *ctx, int reg, int sel) ...@@ -3377,10 +3379,11 @@ static void gen_dmfc0 (DisasContext *ctx, int reg, int sel)
case 20: case 20:
switch (sel) { switch (sel) {
case 0: case 0:
/* 64 bit MMU only */ #ifdef TARGET_MIPS64
gen_op_dmfc0_xcontext(); gen_op_dmfc0_xcontext();
rn = "XContext"; rn = "XContext";
break; break;
#endif
default: default:
goto die; goto die;
} }
...@@ -3966,10 +3969,11 @@ static void gen_dmtc0 (DisasContext *ctx, int reg, int sel) ...@@ -3966,10 +3969,11 @@ static void gen_dmtc0 (DisasContext *ctx, int reg, int sel)
case 20: case 20:
switch (sel) { switch (sel) {
case 0: case 0:
/* 64 bit MMU only */ #ifdef TARGET_MIPS64
gen_op_dmtc0_xcontext(); gen_op_dmtc0_xcontext();
rn = "XContext"; rn = "XContext";
break; break;
#endif
default: default:
goto die; goto die;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册