From d9407c904196de0c8062ba6cb973cb99c2bcb185 Mon Sep 17 00:00:00 2001 From: Robert Xiao Date: Sat, 17 Jun 2023 14:22:56 -0700 Subject: [PATCH] Add a link to the relevant issue for ARM PAC handling --- bindings/java/samples/Sample_arm64.java | 2 ++ samples/sample_arm64.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/bindings/java/samples/Sample_arm64.java b/bindings/java/samples/Sample_arm64.java index e8b4a4a7..5364a2c2 100644 --- a/bindings/java/samples/Sample_arm64.java +++ b/bindings/java/samples/Sample_arm64.java @@ -217,6 +217,8 @@ public class Sample_arm64 implements UnicornConst, Arm64Const { System.out.format(">>> X2 = 0x%x\n", uc.reg_read(UC_ARM64_REG_X2)); } + /* Test PAC support in the emulator. Code adapted from + https://github.com/unicorn-engine/unicorn/issues/1789#issuecomment-1536320351 */ public static void test_arm64_pac() { long x1 = 0x0000aaaabbbbccccL; diff --git a/samples/sample_arm64.c b/samples/sample_arm64.c index 1d11592a..2f3afc79 100644 --- a/samples/sample_arm64.c +++ b/samples/sample_arm64.c @@ -301,6 +301,9 @@ static void test_arm64_hook_mrs() } \ } while(0) + +/* Test PAC support in the emulator. Code adapted from +https://github.com/unicorn-engine/unicorn/issues/1789#issuecomment-1536320351 */ static void test_arm64_pac(void) { uc_engine *uc;