rockbox/utils/hwstub/tools/lua
Amaury Pouly fdb98c258f 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
2017-01-24 15:34:20 +01:00
..
atj hwstub: fix atj213x dsp lua code 2015-11-17 22:40:31 +01:00
jz hwstub: add various jz stuff and xburst tests 2017-01-24 15:25:14 +01:00
pp hwstub: add some PP and Sansa View code 2014-05-11 19:56:15 +02:00
rk27xx hwstub: Add support for rk27xx lradc block 2014-06-15 12:53:28 +02:00
stmp hwstub: fix lcdif pin setup for 18-bit bus 2013-12-24 15:24:50 +01:00
atj.lua hwstub: port hwstub_shell to the new library 2016-04-08 19:38:18 +02:00
dumper.lua hwstub: add stmp clkctrl code and generic register dumper 2013-08-11 19:18:58 +02:00
fiiox1.lua hwstub/jz4760b: fix some typos in lua script after register name changes 2017-01-24 15:22:43 +01:00
fiiox3ii.lua hwstub: add Fiio X3II IPL/SPL dumping code 2017-01-24 15:25:14 +01:00
help.lua hwstub: port hwstub_shell to the new library 2016-04-08 19:38:18 +02:00
hwlib.lua hwstub: Add completion and some pretty printing to the shell 2015-06-28 17:55:17 +02:00
i2c_scan.lua hwstub: implement i2c and i2c eeprom dump 2013-12-06 01:56:04 +01:00
irivere150.lua hwstub: lua functions for atj213x/irivere150 2014-11-28 19:37:14 +01:00
jz.lua hwstub/tools/shell: add JZ4760B and Fiio X1 code 2017-01-24 15:17:46 +01:00
load.lua hwstub: port hwstub_shell to the new library 2016-04-08 19:38:18 +02:00
pp.lua hwstub: port hwstub_shell to the new library 2016-04-08 19:38:18 +02:00
rk27xx.lua hwstub: port hwstub_shell to the new library 2016-04-08 19:38:18 +02:00
sansaexpress.lua hstub: add Sansa Express lcd code 2013-12-03 01:35:34 +01:00
sansaview.lua hwstub: add some PP and Sansa View code 2014-05-11 19:56:15 +02:00
shanlingm2.lua hwstub: add Shanling M2 IPL/SPL dumping code 2017-01-24 15:25:14 +01:00
sonynwze360.lua hwstub: rework i2c completely 2013-10-22 00:34:44 +02:00
sonynwze370.lua hwstub: fix lcd drivers for sony NWZ 2013-09-26 16:41:30 +02:00
stmp.lua hwstub: port hwstub_shell to the new library 2016-04-08 19:38:18 +02:00
xburst.lua hwstub/jz4760b: add lua code to probe for ei/di and ext instructions 2017-01-24 15:34:20 +01:00
zenmozaic.lua hwstub: improve lcdif, digtctl, add sony nwz-e370 2013-09-05 23:16:27 +02:00
zenv.lua
zenxfistyle.lua hwstub: update zenxfistyle code 2013-12-24 15:25:32 +01:00