diff options
author | Paul Brook <paul@codesourcery.com> | 2009-07-12 13:08:59 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-07-12 13:11:25 +0100 |
commit | 93332b7a9f2317cf4d36f268c0398f9969de9d08 (patch) | |
tree | 3810f860779463a14e4e04460f3a64579be7f414 /target-mips/translate.c | |
parent | f5fcd1af8c3d23e8254db64ffbe29f7681dbcda8 (diff) | |
download | qemu-93332b7a9f2317cf4d36f268c0398f9969de9d08.tar.gz qemu-93332b7a9f2317cf4d36f268c0398f9969de9d08.tar.bz2 qemu-93332b7a9f2317cf4d36f268c0398f9969de9d08.zip |
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>
Diffstat (limited to 'target-mips/translate.c')
-rw-r--r-- | target-mips/translate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c index cf467f897b..cc8b3299e4 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; } |