Commit dac93210243ec987eeaa8e78867f8b04de2c559e

Authored by ths
1 parent 069dd10a

Remove bogus mtc0 handling.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2640 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 0 additions and 10 deletions
target-mips/translate.c
... ... @@ -4134,11 +4134,6 @@ static void gen_cp0 (DisasContext *ctx, uint32_t opc, int rt, int rd)
4134 4134 opn = "mfc0";
4135 4135 break;
4136 4136 case OPC_MTC0:
4137   - /* If we get an exception, we want to restart at next instruction */
4138   - /* XXX: breaks for mtc in delay slot */
4139   - ctx->pc += 4;
4140   - save_cpu_state(ctx, 1);
4141   - ctx->pc -= 4;
4142 4137 GEN_LOAD_REG_TN(T0, rt);
4143 4138 gen_mtc0(ctx, rd, ctx->opcode & 0x7);
4144 4139 opn = "mtc0";
... ... @@ -4153,11 +4148,6 @@ static void gen_cp0 (DisasContext *ctx, uint32_t opc, int rt, int rd)
4153 4148 opn = "dmfc0";
4154 4149 break;
4155 4150 case OPC_DMTC0:
4156   - /* If we get an exception, we want to restart at next instruction */
4157   - /* XXX: breaks for dmtc in delay slot */
4158   - ctx->pc += 4;
4159   - save_cpu_state(ctx, 1);
4160   - ctx->pc -= 4;
4161 4151 GEN_LOAD_REG_TN(T0, rt);
4162 4152 gen_dmtc0(ctx, rd, ctx->opcode & 0x7);
4163 4153 opn = "dmtc0";
... ...