From 3b0ce89a7aca2f8d768735f026810ff47a5e7827 Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Tue, 9 Nov 2021 16:09:02 +0100 Subject: [PATCH] missing pcs --- bindings/rust/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bindings/rust/src/lib.rs b/bindings/rust/src/lib.rs index 4663b42c..9cfeb10e 100644 --- a/bindings/rust/src/lib.rs +++ b/bindings/rust/src/lib.rs @@ -761,6 +761,8 @@ impl<'a, D> Unicorn<'a, D> { Arch::MIPS => RegisterMIPS::PC as i32, Arch::SPARC => RegisterSPARC::PC as i32, Arch::M68K => RegisterM68K::PC as i32, + Arch::PPC => RegisterPPC::PC as i32, + Arch::RISCV => RegisterRISCV::PC as i32, _ => panic!("Arch pc not yet know to the unicorn rust bindings"), }; self.reg_read(reg) @@ -777,6 +779,8 @@ impl<'a, D> Unicorn<'a, D> { Arch::MIPS => RegisterMIPS::PC as i32, Arch::SPARC => RegisterSPARC::PC as i32, Arch::M68K => RegisterM68K::PC as i32, + Arch::PPC => RegisterPPC::PC as i32, + Arch::RISCV => RegisterRISCV::PC as i32, _ => panic!("Arch not yet known to the unicorn rust bindings"), }; self.reg_write(reg, value)