Commit 297d8e6227ff1186857b17b1890fc94c637733da

Authored by bellard
1 parent 004bc62c

Fix check for lswi (Jocelyn Mayer)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@628 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 3 deletions
target-ppc/translate.c
... ... @@ -1229,10 +1229,10 @@ GEN_HANDLER(lswi, 0x1F, 0x15, 0x12, 0x00000001, PPC_INTEGER)
1229 1229 if (nb == 0)
1230 1230 nb = 32;
1231 1231 nr = nb / 4;
1232   - if (((start + nr) > 32 && start <= ra && (start + nr - 32) >= ra) ||
1233   - ((start + nr) <= 32 && start <= ra && (start + nr) >= ra)) {
  1232 + if (((start + nr) > 32 && start <= ra && (start + nr - 32) > ra) ||
  1233 + ((start + nr) <= 32 && start <= ra && (start + nr) > ra)) {
1234 1234 RET_EXCP(EXCP_PROGRAM, EXCP_INVAL | EXCP_INVAL_LSWX);
1235   - }
  1235 + }
1236 1236 if (ra == 0) {
1237 1237 gen_op_set_T0(0);
1238 1238 } else {
... ...