Commit bc9ed47b authored by bellard's avatar bellard
Browse files

fixed jump mask (Ralf Baechle)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1466 c046a42c-6fe2-441c-8c8c-71466251a162
parent 9fb63ac2
......@@ -798,7 +798,7 @@ static void gen_compute_branch (DisasContext *ctx, uint16_t opc,
case OPC_J:
case OPC_JAL:
/* Jump to immediate */
btarget = ((ctx->pc + 4) & 0xFF000000) | offset;
btarget = ((ctx->pc + 4) & 0xF0000000) | offset;
break;
case OPC_JR:
case OPC_JALR:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment