aboutsummaryrefslogtreecommitdiff
path: root/target-mips/translate.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-19 17:44:33 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-19 17:44:33 +0000
commit5d46d55d4b0f2be4ff7f553013fca4f7980549ab (patch)
treea997da57aa4ce5b3be927e1479b61ca381de1924 /target-mips/translate.c
parent642b043a9eb85ee98636b44935aa39006f6d3643 (diff)
Fix ldl/ldr implementation, by Aurelien Jarno.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2832 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/translate.c')
-rw-r--r--target-mips/translate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c
index 57e5777ccb..a360d11fc1 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -761,6 +761,7 @@ static void gen_ldst (DisasContext *ctx, uint32_t opc, int rt,
opn = "scd";
break;
case OPC_LDL:
+ GEN_LOAD_REG_TN(T1, rt);
op_ldst(ldl);
GEN_STORE_TN_REG(rt, T0);
opn = "ldl";
@@ -771,6 +772,7 @@ static void gen_ldst (DisasContext *ctx, uint32_t opc, int rt,
opn = "sdl";
break;
case OPC_LDR:
+ GEN_LOAD_REG_TN(T1, rt);
op_ldst(ldr);
GEN_STORE_TN_REG(rt, T0);
opn = "ldr";