From 442d53ee6c55b669da3282a0a0fd3f5b18266fd7 Mon Sep 17 00:00:00 2001 From: shakedd Date: Sun, 5 May 2024 09:28:33 +0300 Subject: [PATCH] Add TC option to uc_get_pc function --- unicornafl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unicornafl.cpp b/unicornafl.cpp index c7ee326d..2ab53a17 100644 --- a/unicornafl.cpp +++ b/unicornafl.cpp @@ -925,6 +925,8 @@ static uint64_t uc_get_pc(uc_engine* uc) { uc_reg_read(uc, UC_S390X_REG_PC, &pc); } else if (arch == UC_ARCH_ARM64) { uc_reg_read(uc, UC_ARM64_REG_PC, &pc); + } else if (arch == UC_ARCH_TRICORE) { + uc_reg_read(uc, UC_TRICORE_REG_PC, &pc); } return pc;