mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 06:38:15 +00:00
add regression for #114
This commit is contained in:
parent
9e4ed32e8a
commit
c73149d581
1 changed files with 9 additions and 0 deletions
9
regress/arm_movr12_hang.py
Normal file
9
regress/arm_movr12_hang.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from unicorn import *
|
||||
uc = Uc(UC_ARCH_ARM, UC_MODE_ARM)
|
||||
uc.mem_map(0x1000, 0x1000)
|
||||
uc.mem_write(0x1000, '00c000e3'.decode('hex'))
|
||||
def hook_block(uc, addr, *args):
|
||||
print 'enter block 0x%04x' % addr
|
||||
uc.hook_add(UC_HOOK_BLOCK, hook_block)
|
||||
print 'block should only run once'
|
||||
uc.emu_start(0x1000, 0x1004, timeout=250)
|
Loading…
Reference in a new issue