diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-09 12:31:31 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-09 12:31:31 +0000 |
commit | dac93210243ec987eeaa8e78867f8b04de2c559e (patch) | |
tree | ab0e95e7c96f16f51aea7bd7ce283f3d121b7bc9 /target-mips/translate.c | |
parent | 069dd10acf3e3109d119ffe02282b67f4bce5c44 (diff) |
Remove bogus mtc0 handling.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2640 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/translate.c')
-rw-r--r-- | target-mips/translate.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c index fa56f0603b..fd11e1b8df 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -4134,11 +4134,6 @@ static void gen_cp0 (DisasContext *ctx, uint32_t opc, int rt, int rd) opn = "mfc0"; break; case OPC_MTC0: - /* If we get an exception, we want to restart at next instruction */ - /* XXX: breaks for mtc in delay slot */ - ctx->pc += 4; - save_cpu_state(ctx, 1); - ctx->pc -= 4; GEN_LOAD_REG_TN(T0, rt); gen_mtc0(ctx, rd, ctx->opcode & 0x7); opn = "mtc0"; @@ -4153,11 +4148,6 @@ static void gen_cp0 (DisasContext *ctx, uint32_t opc, int rt, int rd) opn = "dmfc0"; break; case OPC_DMTC0: - /* If we get an exception, we want to restart at next instruction */ - /* XXX: breaks for dmtc in delay slot */ - ctx->pc += 4; - save_cpu_state(ctx, 1); - ctx->pc -= 4; GEN_LOAD_REG_TN(T0, rt); gen_dmtc0(ctx, rd, ctx->opcode & 0x7); opn = "dmtc0"; |