Fix MIPS SC

Fix botched merge of op_ldst_sc calls to match actual implementation.
Thanks to Aurelien Jarno for diagnosing this.

Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
Paul Brook 2009-07-12 13:08:59 +01:00
parent 53e3c4f918
commit feeb3b6a7a
1 changed files with 2 additions and 2 deletions

View File

@ -1174,13 +1174,13 @@ static void gen_st_cond (DisasContext *ctx, uint32_t opc, int rt,
#if defined(TARGET_MIPS64) #if defined(TARGET_MIPS64)
case OPC_SCD: case OPC_SCD:
save_cpu_state(ctx, 0); save_cpu_state(ctx, 0);
op_ldst_scd(t0, t1, t0, ctx); op_ldst_scd(t1, t0, rt, ctx);
opn = "scd"; opn = "scd";
break; break;
#endif #endif
case OPC_SC: case OPC_SC:
save_cpu_state(ctx, 0); save_cpu_state(ctx, 0);
op_ldst_sc(t0, t1, t0, ctx); op_ldst_sc(t1, t0, rt, ctx);
opn = "sc"; opn = "sc";
break; break;
} }