There appears to be a bug in getting accessed registers for MIPSB 32-bit in 4.0.0
>>> str(CS_VERSION_MAJOR) + "." + str(CS_VERSION_MINOR) + "." + str(CS_VERSION_EXTRA) + " " + str(CS_API_MAJOR) + "." + str(CS_API_MINOR)
'4.0.0 4.0'
from capstone import *
# move $sp, $fp
code = b'\x03\xc0\xe8\x25'
cs = Cs(CS_ARCH_MIPS, CS_MODE_MIPS2 + CS_MODE_BIG_ENDIAN + CS_MODE_MIPS32)
for i in cs.disasm(code, 0x1000, count=1):
i.regs_access()
Expected: Print out of registers read and written
Actual:
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/capstone/__init__.py", line 779, in regs_access
raise CsError(status)
capstone.CsError: Details are unavailable (CS_ERR_DETAIL)
There appears to be a bug in getting accessed registers for MIPSB 32-bit in 4.0.0
Expected: Print out of registers read and written
Actual: