mips: advance PC for SYSCALL instruction. this fixes issue #157
This commit is contained in:
4
tests/regress/mips_syscall_pc.py
Normal file → Executable file
4
tests/regress/mips_syscall_pc.py
Normal file → Executable file
@@ -1,3 +1,5 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from unicorn import *
|
||||
from unicorn.mips_const import *
|
||||
|
||||
@@ -13,4 +15,4 @@ uc.mem_write(addr, code)
|
||||
uc.reg_write(UC_MIPS_REG_V0, 100)
|
||||
uc.hook_add(UC_HOOK_INTR, intr_hook)
|
||||
|
||||
uc.emu_start(addr, len(code))
|
||||
uc.emu_start(addr, addr+len(code))
|
||||
|
||||
Reference in New Issue
Block a user