From 9167ab8671b0c44a6f9f3ad5e762d68596f929df Mon Sep 17 00:00:00 2001 From: lazymio Date: Sat, 21 May 2022 00:02:22 +0200 Subject: [PATCH] Set riscv_get_pc for uc->get_pc --- qemu/target/riscv/unicorn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu/target/riscv/unicorn.c b/qemu/target/riscv/unicorn.c index 684cfb46..a440a6bd 100644 --- a/qemu/target/riscv/unicorn.c +++ b/qemu/target/riscv/unicorn.c @@ -656,6 +656,7 @@ void riscv64_uc_init(struct uc_struct *uc) uc->reg_reset = riscv_reg_reset; uc->release = riscv_release; uc->set_pc = riscv_set_pc; + uc->get_pc = riscv_get_pc; uc->stop_interrupt = riscv_stop_interrupt; uc->insn_hook_validate = riscv_insn_hook_validate; uc->cpus_init = riscv_cpus_init;