diff options
-rw-r--r-- | target-mips/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c index 87e123a..cb1791f 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -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: |