summaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/files/patch-disas_libvixl_vixl_a64_disasm-a64.cc
blob: 4e88b6b4a362ba59d14bf70891a03b00b75dcea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- disas/libvixl/vixl/a64/disasm-a64.cc.orig	2016-04-14 20:19:53 UTC
+++ disas/libvixl/vixl/a64/disasm-a64.cc
@@ -2693,7 +2693,7 @@ void Disassembler::AppendPCRelativeOffse
   if (offset < 0) {
     abs_offset = -abs_offset;
   }
-  AppendToOutput("#%c0x%" PRIx64, sign, abs_offset);
+  AppendToOutput("#%c0x%" PRIx64, sign, offset < 0 ? -offset : offset);
 }