Merge pull request #137 from mothran/sparc64_crash

added the sparc64 crash regression
This commit is contained in:
Nguyen Anh Quynh 2015-09-13 09:34:20 +08:00
commit 507fc4dab7

11
regress/sparc64.py Normal file
View file

@ -0,0 +1,11 @@
#!/usr/bin/python
from unicorn import *
from unicorn.sparc_const import *
uc = Uc(UC_ARCH_SPARC, UC_MODE_64)
uc.reg_write(UC_SPARC_REG_SP, 100)
uc.reg_write(UC_SPARC_REG_FP, 100)
print 'writing sp = 100, fp = 100'
print 'sp =', uc.reg_read(UC_SPARC_REG_SP)
print 'fp =', uc.reg_read(UC_SPARC_REG_FP)