mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
Catch unaligned sc/scd.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2642 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
97428a4d84
commit
62c5609aa5
2 changed files with 10 additions and 0 deletions
|
@ -714,6 +714,7 @@ static void gen_ldst (DisasContext *ctx, uint32_t opc, int rt,
|
|||
opn = "sd";
|
||||
break;
|
||||
case OPC_SCD:
|
||||
save_cpu_state(ctx, 1);
|
||||
GEN_LOAD_REG_TN(T1, rt);
|
||||
op_ldst(scd);
|
||||
opn = "scd";
|
||||
|
@ -812,6 +813,7 @@ static void gen_ldst (DisasContext *ctx, uint32_t opc, int rt,
|
|||
opn = "ll";
|
||||
break;
|
||||
case OPC_SC:
|
||||
save_cpu_state(ctx, 1);
|
||||
GEN_LOAD_REG_TN(T1, rt);
|
||||
op_ldst(sc);
|
||||
GEN_STORE_TN_REG(rt, T0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue