From: Paul Brook Date: Sun, 12 Jul 2009 12:08:59 +0000 (+0100) Subject: Fix MIPS SC X-Git-Tag: v0.11.0-rc0~106 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=feeb3b6a7afd6be80ea31842171f25ec0c36693d;p=qemu.git 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 --- diff --git a/target-mips/translate.c b/target-mips/translate.c index cf467f897..cc8b3299e 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -1174,13 +1174,13 @@ static void gen_st_cond (DisasContext *ctx, uint32_t opc, int rt, #if defined(TARGET_MIPS64) case OPC_SCD: save_cpu_state(ctx, 0); - op_ldst_scd(t0, t1, t0, ctx); + op_ldst_scd(t1, t0, rt, ctx); opn = "scd"; break; #endif case OPC_SC: save_cpu_state(ctx, 0); - op_ldst_sc(t0, t1, t0, ctx); + op_ldst_sc(t1, t0, rt, ctx); opn = "sc"; break; }