projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53e3c4f
)
Fix MIPS SC
author
Paul Brook
<paul@codesourcery.com>
Sun, 12 Jul 2009 12:08:59 +0000
(13:08 +0100)
committer
Paul Brook
<paul@codesourcery.com>
Sun, 12 Jul 2009 12:11:25 +0000
(13:11 +0100)
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>
target-mips/translate.c
patch
|
blob
|
history
diff --git
a/target-mips/translate.c
b/target-mips/translate.c
index cf467f897bf960ec2799d3a58851c0da025ed3d2..cc8b3299e4359dfd27dac37bdf0b9331efa8f5a5 100644
(file)
--- 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(t
0, t1, t0
, ctx);
+ op_ldst_scd(t
1, t0, rt
, ctx);
opn = "scd";
break;
#endif
case OPC_SC:
save_cpu_state(ctx, 0);
- op_ldst_sc(t
0, t1, t0
, ctx);
+ op_ldst_sc(t
1, t0, rt
, ctx);
opn = "sc";
break;
}