mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-09-20 04:44:39 -04:00
fw: Replace custom picorv32 instructions in qemu target
This commit is contained in:
parent
60e80c5a38
commit
333140fae7
3 changed files with 20 additions and 0 deletions
|
@ -4,8 +4,19 @@
|
|||
*/
|
||||
|
||||
#include <tkey/tk1_mem.h>
|
||||
|
||||
#ifdef QEMU_DEBUG
|
||||
|
||||
#define picorv32_retirq_insn(...) \
|
||||
mv ra, x3; \
|
||||
ret
|
||||
|
||||
#else
|
||||
|
||||
#include "picorv32/custom_ops.S" // PicoRV32 custom instructions
|
||||
|
||||
#endif
|
||||
|
||||
#define illegal_insn() .word 0
|
||||
|
||||
// Variables in bss
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue