unicorn-engine / unicorn

Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, S390x, TriCore, X86)
http://www.unicorn-engine.org
GNU General Public License v2.0
7.53k stars 1.33k forks source link

Add CpuModel's for architectures to rust bindings #1847

Closed lockbox closed 1 year ago

lockbox commented 1 year ago

This adds the enums for all the architectures to the rust bindings so that we can used uc_set_cpu_model. this also exposes the ffi module so that we can set the cpu model

Closes #1821

And addresses concerns (for rust at least) for issue #1777

wtdcode commented 1 year ago

Sorry for late. I just got on my desktop working.

Thanks for your contribution! It's awesome.