public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* RISC-V u-boot unable to boot QEMU using '-cpu max'
@ 2024-04-22 19:43 Daniel Henrique Barboza
  2024-04-23  5:34 ` Leo Liang
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Henrique Barboza @ 2024-04-22 19:43 UTC (permalink / raw)
  To: u-boot; +Cc: Andrew Jones

Hi,

In QEMU we have a 'max' type CPU that implements (almost) all extensions that QEMU
is able to emulate. Recently, in QEMU commit 249e0905d05, we bumped the extensions
for this CPU.

And after this commit this CPU is now unable to boot a guest using upstream
u-boot. Here's the error being thrown:

qemu-system-riscv64 \
         -machine virt -nographic -m 8G -smp 8 \
         -cpu max -kernel uboot.elf (...)
(...)

initcall sequence 000000008027c3e8 failed at call 000000008021259e (err=-28)
### ERROR ### Please RESET the board ###


I can get the guest to boot if I disable the following extensions from the 'max' CPU:

  -cpu max,zfbfmin=false,zvfbfmin=false,zvfbfwma=false

Due to QEMU extension dependencies I'm not able to disable these individually. What I can
say is that u-boot isn't playing ball to at least one of them.

Is this an u-boot bug? Up to this point I was assuming that u-boot would silently ignore
hart extensions that it doesn't support.


Thanks,


Daniel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-04-23 14:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-22 19:43 RISC-V u-boot unable to boot QEMU using '-cpu max' Daniel Henrique Barboza
2024-04-23  5:34 ` Leo Liang
2024-04-23 12:41   ` Conor Dooley
2024-04-23 12:52     ` Daniel Henrique Barboza
2024-04-23 14:23       ` Conor Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox