mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 10:58:25 +00:00
Merge pull request #583 from petmac/arm_fp_vfp_disabled
Fix incorrect end address passed to emu_start.
This commit is contained in:
commit
faef4365cf
1 changed files with 8 additions and 4 deletions
|
@ -30,11 +30,15 @@ class FpVfpDisabled(regress.RegressTest):
|
||||||
# vpush {d8}
|
# vpush {d8}
|
||||||
code += '2ded028b'
|
code += '2ded028b'
|
||||||
|
|
||||||
|
address = 0x1000
|
||||||
|
mem_size = 0x1000
|
||||||
|
code_bytes = code.decode('hex')
|
||||||
|
|
||||||
uc = Uc(UC_ARCH_ARM, UC_MODE_THUMB)
|
uc = Uc(UC_ARCH_ARM, UC_MODE_THUMB)
|
||||||
uc.mem_map(0x1000, 0x1000)
|
uc.mem_map(address, mem_size)
|
||||||
uc.mem_write(0x1000, code.decode('hex'))
|
uc.mem_write(address, code_bytes)
|
||||||
uc.reg_write(UC_ARM_REG_SP, 0x2000)
|
uc.reg_write(UC_ARM_REG_SP, address + mem_size)
|
||||||
uc.emu_start(0x1000, 0x1004)
|
uc.emu_start(address, address + len(code_bytes))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
regress.main()
|
regress.main()
|
||||||
|
|
Loading…
Reference in a new issue