Commit 13846e70 authored by bellard's avatar bellard
Browse files

Sparc64 BPr branch target fix (Blue Swirl)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2003 c046a42c-6fe2-441c-8c8c-71466251a162
parent 3cb0853a
...@@ -970,7 +970,7 @@ static void disas_sparc_insn(DisasContext * dc) ...@@ -970,7 +970,7 @@ static void disas_sparc_insn(DisasContext * dc)
case 0x3: /* V9 BPr */ case 0x3: /* V9 BPr */
{ {
target = GET_FIELD_SP(insn, 0, 13) | target = GET_FIELD_SP(insn, 0, 13) |
(GET_FIELD_SP(insn, 20, 21) >> 7); (GET_FIELD_SP(insn, 20, 21) << 14);
target = sign_extend(target, 16); target = sign_extend(target, 16);
target <<= 2; target <<= 2;
rs1 = GET_FIELD(insn, 13, 17); rs1 = GET_FIELD(insn, 13, 17);
......
Supports Markdown
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