- Added fullMode input in workflow_dispatch
- Take decision whether to build either in debug or release mode and if to build for all python versions according to the commit message patterns
- Set proper artifact names
- Removed not needed steps
- Compacted some steps in order to leverage more the matrix feature
- Bumped cibuildwheel action to 2.22.0
- Run actual regress tests in place of sample scripts
- Specify optional test install in pyproject.toml with proper requirements
- Derive package version from git tags
- Add GENERATORS env var support in setup.py to specify cmake generator and minor refactoring
- Minor cleanup/refactoring for the regress test suite
- Marked some regress tests with skipIf to skip them in case of old python versions
- Marked some failing regress tests to be checked with skipIf
39 lines
1008 B
Python
Executable File
39 lines
1008 B
Python
Executable File
# Added by Peter Mackay, relating to issue 571
|
|
# ARM NEON/VFP support seems to exist but is disabled by default
|
|
# https://github.com/unicorn-engine/unicorn/issues/571
|
|
|
|
import regress
|
|
from unicorn import *
|
|
from unicorn.arm_const import *
|
|
|
|
CODE = (
|
|
b'\x11\xEE\x50\x1F' # MRC p15, #0, r1, c1, c0, #2
|
|
b'\x41\xF4\x70\x01' # ORR r1, r1, #(0xf << 20)
|
|
b'\x01\xEE\x50\x1F' # MCR p15, #0, r1, c1, c0, #2
|
|
b'\x4F\xF0\x00\x01' # MOV r1, #0
|
|
b'\x07\xEE\x95\x1F' # MCR p15, #0, r1, c7, c5, #4
|
|
b'\x4F\xF0\x80\x40' # MOV r0,#0x40000000
|
|
b'\xE8\xEE\x10\x0A' # FMXR FPEXC, r0
|
|
b'\x2d\xed\x02\x8b' # vpush {d8}
|
|
)
|
|
|
|
BASE = 0x1000
|
|
|
|
|
|
class FpVfpDisabled(regress.RegressTest):
|
|
|
|
def runTest(self):
|
|
mem_size = 0x1000
|
|
|
|
uc = Uc(UC_ARCH_ARM, UC_MODE_THUMB)
|
|
|
|
uc.mem_map(BASE, mem_size)
|
|
uc.mem_write(BASE, CODE)
|
|
uc.reg_write(UC_ARM_REG_SP, BASE + mem_size - 4)
|
|
|
|
uc.emu_start(BASE + 1, BASE + len(CODE))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
regress.main()
|