Merge pull request #583 from petmac/arm_fp_vfp_disabled

Fix incorrect end address passed to emu_start.
This commit is contained in:
Nguyen Anh Quynh 2016-06-27 22:17:12 +08:00 committed by GitHub
commit faef4365cf

View file

@ -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()