missing pcs

This commit is contained in:
Dominik Maier
2021-11-09 16:09:02 +01:00
parent a3e139847d
commit 3b0ce89a7a

View File

@ -761,6 +761,8 @@ impl<'a, D> Unicorn<'a, D> {
Arch::MIPS => RegisterMIPS::PC as i32, Arch::MIPS => RegisterMIPS::PC as i32,
Arch::SPARC => RegisterSPARC::PC as i32, Arch::SPARC => RegisterSPARC::PC as i32,
Arch::M68K => RegisterM68K::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"), _ => panic!("Arch pc not yet know to the unicorn rust bindings"),
}; };
self.reg_read(reg) self.reg_read(reg)
@ -777,6 +779,8 @@ impl<'a, D> Unicorn<'a, D> {
Arch::MIPS => RegisterMIPS::PC as i32, Arch::MIPS => RegisterMIPS::PC as i32,
Arch::SPARC => RegisterSPARC::PC as i32, Arch::SPARC => RegisterSPARC::PC as i32,
Arch::M68K => RegisterM68K::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"), _ => panic!("Arch not yet known to the unicorn rust bindings"),
}; };
self.reg_write(reg, value) self.reg_write(reg, value)