diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-04-23 15:21:24 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-04-23 15:21:24 +0000 |
commit | cd7dd10f09a66b0e356f7164850f9270268c0a94 (patch) | |
tree | 3289e0dfe44bf2c96ebd3d45678d3ebdf87b0e6d /target-mips | |
parent | 76e050c2e62995f1d6905e28674dea3a7fcff1a5 (diff) |
MIPS CP0 not usable in kernel mode (Stefan Weil)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1829 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips')
-rw-r--r-- | target-mips/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c index 418a7afa03..fd1faf1499 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -1180,7 +1180,7 @@ static void gen_cp0 (DisasContext *ctx, uint16_t opc, int rt, int rd) const unsigned char *opn = "unk"; if (!(ctx->CP0_Status & (1 << CP0St_CU0)) && - !(ctx->hflags & MIPS_HFLAG_UM) && + (ctx->hflags & MIPS_HFLAG_UM) && !(ctx->hflags & MIPS_HFLAG_ERL) && !(ctx->hflags & MIPS_HFLAG_EXL)) { if (loglevel & CPU_LOG_TB_IN_ASM) { |