mips: advance PC for SYSCALL instruction. this fixes issue #157

This commit is contained in:
Nguyen Anh Quynh
2015-09-28 10:58:43 +08:00
parent 0b971a4413
commit 2b0b4169bc
5 changed files with 13 additions and 1 deletions

4
tests/regress/mips_syscall_pc.py Normal file → Executable file
View 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))