Accessing SPI controller registers in u-boot command line

Hi everyone,

When running U-Boot in M-Mode on the QEMU sifive_u machine, I get a Load Access Fault when trying to access one of the SPI controllers (QSPI 2) using md.w 0x10050000 1.

Any reason why this is happening?? I’ve got the same problem with the UART controllers. Note that in this setup there is no SBI, as uboot is start with Qemu’s -bios option. Could u-boot be enabling memory protection for MMIO devices??

Thanks.