tools:bootrom: enable qspi mode

Signed-off-by: liangkangnan <liangkangnan@163.com>
verilator
liangkangnan 2023-04-04 11:11:39 +08:00
parent d65cdee729
commit 47b744a7ec
1 changed files with 11 additions and 4 deletions

View File

@ -1,10 +1,17 @@
.global entry .global entry
.option norvc .option norvc
entry: entry:
lui a0, 0x0200 // enable quad spi mode
slli a0, a0, 0x4 lui a1, 0x2c00
// jump to 0x02000000 sw zero, 0(a1)
// xip base address(0x02000000)
lui a0, 0x2000
// jump to xip base address
jalr a0 jalr a0
loop: loop:
j loop j loop