Commit bc9ed47b123a0a8d3aa32d5bd3f8c682afcd6bd0

Authored by bellard
1 parent 9fb63ac2

fixed jump mask (Ralf Baechle)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1466 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-mips/translate.c
... ... @@ -798,7 +798,7 @@ static void gen_compute_branch (DisasContext *ctx, uint16_t opc,
798 798 case OPC_J:
799 799 case OPC_JAL:
800 800 /* Jump to immediate */
801   - btarget = ((ctx->pc + 4) & 0xFF000000) | offset;
  801 + btarget = ((ctx->pc + 4) & 0xF0000000) | offset;
802 802 break;
803 803 case OPC_JR:
804 804 case OPC_JALR:
... ...