summaryrefslogtreecommitdiff
path: root/utils/hwstub/lib/hwstub_net.cpp
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-01-18 14:39:03 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2017-01-24 15:34:20 +0100
commitfdb98c258f56c8fbdc28e256ed3edab0bf47009b (patch)
tree86dba5e242ac4f9d020aed3c41a3302635ce7c17 /utils/hwstub/lib/hwstub_net.cpp
parent9bb6050d40b9936beda5cb1cd15040f6c1b07179 (diff)
downloadrockbox-fdb98c258f56c8fbdc28e256ed3edab0bf47009b.tar.gz
rockbox-fdb98c258f56c8fbdc28e256ed3edab0bf47009b.zip
hwstub/jz4760b: add lua code to probe for ei/di and ext instructions
Add lua code to check whether ei/di and ext instructions are supported. This is unclear since xburst is somewhere between mips32r1 and mips32r2. Details results are below, but in summary: they don't work (ei has no effect, di/ext cause illegal instruction exceptions) > ./hwstub_shell -q -b -e 'require("jz/misc"); JZ.misc.enable_sram()' \ -f lua/xburst.lua -e "XBURST.test_ext_inst(0xb32d0000)" [...] Selecting soc jz4760b. Redirecting HW to hwstub.soc.jz4760b data: d7168acf error: lua/xburst.lua:209: call failed trapped exception in call > ./hwstub_shell -q -b -e 'require("jz/misc"); JZ.misc.enable_sram()' \ -f lua/xburst.lua -e "XBURST.test_ei_di_inst(0xb32d0000)" [...] Selecting soc jz4760b. Redirecting HW to hwstub.soc.jz4760b Testing ei Test SR Enable interrupts with CP0 SR: 0x1 Disable interrupts with CP0 SR: 0x0 Test ei/di Enable interrupts with ei SR: 0x0 Disable interrupts with di error: lua/xburst.lua:244: call failed trapped exception in call Change-Id: I2e162b5dd5e70488bcd8b58f3ca401a3ecab3c4b
Diffstat (limited to 'utils/hwstub/lib/hwstub_net.cpp')
0 files changed, 0 insertions, 0 deletions