On Mon, 12 Feb 2024 at 23:04, Helge Deller <del...@gmx.de> wrote: > > On 2/12/24 22:16, Peter Maydell wrote: > > This fails "make check", eg: > > https://gitlab.com/qemu-project/qemu/-/jobs/6154451100 > > > > because when the qom-test etc tests run qemu-system-hppa, it > > barfs with "qemu-system-hppa: no firmware provided". > > > > That kind of firmware check needs to not fire when > > using the qtest accel. > > Ok. But how do people usually work around this kind of issue? > Test if the qtest accel is in use? > Ignore if the firmware can't be loaded? > Any hint would be great!
There's a qtest_enabled() function -- see eg hw/mips/malta.c for an example of skipping the "fail on no firmware" check when it's enabled. (There are a bunch of others in the tree too.) thanks -- PMM