sparc: add SPARC32 mode (= UC_MODE_32)

This commit is contained in:
Nguyen Anh Quynh
2016-01-23 10:48:18 +08:00
parent ca79d11211
commit d79925f477
11 changed files with 13 additions and 8 deletions

View File

@ -28,7 +28,7 @@ def test_sparc():
print("Emulate SPARC code")
try:
# Initialize emulator in SPARC EB mode
mu = Uc(UC_ARCH_SPARC, UC_MODE_32)
mu = Uc(UC_ARCH_SPARC, UC_MODE_SPARC32)
# map 2MB memory for this emulation
mu.mem_map(ADDRESS, 2 * 1024 * 1024)

View File

@ -30,6 +30,7 @@ UC_MODE_32 = 4
UC_MODE_64 = 8
UC_MODE_PPC64 = 8
UC_MODE_QPX = 16
UC_MODE_SPARC32 = 4
UC_MODE_SPARC64 = 8
UC_MODE_V9 = 16