From 7e85ba9816383d8735623af94316f2682907a119 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Mon, 22 Apr 2019 04:07:27 +0000 Subject: [PATCH] Fix sign error in previous. --- src/microcode/cmpintmd/aarch64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microcode/cmpintmd/aarch64.c b/src/microcode/cmpintmd/aarch64.c index 2baebfe3d..2853c8dcd 100644 --- a/src/microcode/cmpintmd/aarch64.c +++ b/src/microcode/cmpintmd/aarch64.c @@ -263,7 +263,7 @@ write_uuo_target (insn_t * target, SCHEME_OBJECT * saddr) iaddr = (((insn_t *) saddr) + ioff); /* ldr x1, PC-ioff */ - (iaddr[0]) = (0x58000001UL | ((((unsigned) ioff) & 0x7ffff) << 5)); + (iaddr[0]) = (0x58000001UL | ((((unsigned) (-ioff)) & 0x7ffff) << 5)); /* If the target PC is right after the target offset, then the PC requires no further relocation and we can jump to a fixed address. -- 2.25.1