[unicorn-engine] Re: SPARC modes 32 and 64 return invalid mode

  • From: Dennis Munsie <dmunsie@xxxxxxxxx>
  • To: unicorn-engine@xxxxxxxxxxxxx
  • Date: Mon, 20 Dec 2021 22:14:33 -0500

The enum values are defined in unicorn.h. That value corresponds to 
UC_ERR_MODE. Have you tried or-ing UC_MODE_BIG_ENDIAN with UC_MODE_SPARC32?

dennis

On Dec 20, 2021, at 8:30 PM, Red Guy <redguy261@xxxxxxxxx> wrote:


Hello I'm attempting to create A simple program which emulators A few SPARC 
instructions. the line of code below is what I am trying to use to open A new 
Unicorn engine but it is not working

err = uc_open(UC_ARCH_SPARC, UC_MODE_SPARC32, &uc);

Its returns A enum value of 4.

Other related posts: