mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 12:58:09 +00:00
Started fixing uc_mode flag usage
This commit is contained in:
parent
e722c34458
commit
b7c43108bd
1 changed files with 1 additions and 1 deletions
2
uc.c
2
uc.c
|
@ -185,7 +185,7 @@ uc_err uc_open(uc_arch arch, uc_mode mode, uc_engine **result)
|
|||
|
||||
// verify mode
|
||||
// TODO: support Big endian, MCLASS & V8
|
||||
if (mode & (~(UC_MODE_ARM | UC_MODE_THUMB | UC_MODE_BIG_ENDIAN | UC_MODE_LITTLE_ENDIAN))) {
|
||||
if (mode & ~UC_MODE_ARM_MASK) {
|
||||
free(uc);
|
||||
return UC_ERR_MODE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue