summaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/files/patch-disas_libvixl_a64_disasm-a64.cc
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/qemu-devel/files/patch-disas_libvixl_a64_disasm-a64.cc')
-rw-r--r--emulators/qemu-devel/files/patch-disas_libvixl_a64_disasm-a64.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/emulators/qemu-devel/files/patch-disas_libvixl_a64_disasm-a64.cc b/emulators/qemu-devel/files/patch-disas_libvixl_a64_disasm-a64.cc
new file mode 100644
index 000000000000..3544f6d34501
--- /dev/null
+++ b/emulators/qemu-devel/files/patch-disas_libvixl_a64_disasm-a64.cc
@@ -0,0 +1,11 @@
+--- disas/libvixl/a64/disasm-a64.cc.orig 2015-11-03 20:01:31 UTC
++++ disas/libvixl/a64/disasm-a64.cc
+@@ -1362,7 +1362,7 @@ void Disassembler::AppendPCRelativeOffse
+ int64_t offset) {
+ USE(instr);
+ char sign = (offset < 0) ? '-' : '+';
+- AppendToOutput("#%c0x%" PRIx64, sign, std::abs(offset));
++ AppendToOutput("#%c0x%" PRIx64, sign, offset < 0 ? -offset : offset);
+ }
+
+