Skip to content

Commit

Permalink
Merge pull request alexhude#24 from eugenosm/fix-error-on-wrong-arch
Browse files Browse the repository at this point in the history
Fix: error message on start, if unsupported CPU selected
  • Loading branch information
alexhude authored Jul 25, 2021
2 parents f82b33d + 0edffcd commit e5a9642
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uEmu.py
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,9 @@ def __init__(self, owner):
"mipsle" : [ UC_MIPS_REG_PC, UC_ARCH_MIPS, UC_MODE_MIPS32 | UC_MODE_LITTLE_ENDIAN ],
}
arch = UEMU_HELPERS.get_arch()
if arch == "":
uemu_log("CPU is not supported")
return

self.uc_reg_pc, self.uc_arch, self.uc_mode = uc_setup[arch]
uemu_log("Unicorn version [ %s ]" % (unicorn.__version__))
Expand Down

0 comments on commit e5a9642

Please sign in to comment.