mirror of https://gitee.com/openkylin/qemu.git
unaligned load fix (Ralf Baechle)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1471 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
ae022501f2
commit
9d1d106a3d
|
@ -329,6 +329,7 @@ static void gen_ldst (DisasContext *ctx, uint16_t opc, int rt,
|
||||||
opn = "lbu";
|
opn = "lbu";
|
||||||
break;
|
break;
|
||||||
case OPC_LWL:
|
case OPC_LWL:
|
||||||
|
GEN_LOAD_REG_TN(T1, rt);
|
||||||
op_ldst(lwl);
|
op_ldst(lwl);
|
||||||
GEN_STORE_TN_REG(rt, T0);
|
GEN_STORE_TN_REG(rt, T0);
|
||||||
opn = "lwl";
|
opn = "lwl";
|
||||||
|
@ -339,6 +340,7 @@ static void gen_ldst (DisasContext *ctx, uint16_t opc, int rt,
|
||||||
opn = "swr";
|
opn = "swr";
|
||||||
break;
|
break;
|
||||||
case OPC_LWR:
|
case OPC_LWR:
|
||||||
|
GEN_LOAD_REG_TN(T1, rt);
|
||||||
op_ldst(lwr);
|
op_ldst(lwr);
|
||||||
GEN_STORE_TN_REG(rt, T0);
|
GEN_STORE_TN_REG(rt, T0);
|
||||||
opn = "lwr";
|
opn = "lwr";
|
||||||
|
|
Loading…
Reference in New Issue