summaryrefslogtreecommitdiff
path: root/target-mips
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-02 15:10:44 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-02 15:10:44 +0000
commitbc9ed47b123a0a8d3aa32d5bd3f8c682afcd6bd0 (patch)
treeb85932edea22d660488c904013a5efcaeee3991c /target-mips
parent9fb63ac281f4472242f040b59d428aba35237530 (diff)
downloadqemu-bc9ed47b123a0a8d3aa32d5bd3f8c682afcd6bd0.zip
fixed jump mask (Ralf Baechle)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1466 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c
index 87e123ade7..cb1791f099 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: