]> Git Repo - qemu.git/commit
leon3: fix the error message when no bios are provided
authorKONRAD Frederic <[email protected]>
Wed, 15 May 2019 12:31:27 +0000 (14:31 +0200)
committerMark Cave-Ayland <[email protected]>
Fri, 17 May 2019 08:17:11 +0000 (09:17 +0100)
commitbd30132cd87001af51640d5f1b5754a5dc7fbbe6
treed3242a8cdf50888302a1897efbda0a338c81d441
parent6b99a110c7f377edd194fe0cc4d3c44b11cf62d8
leon3: fix the error message when no bios are provided

The leon3 board is looking for u-boot.bin by default (LEON3_PROM_FILENAME)..
But in the case this file is not found and no other file are given on the
command line we get the following error:

  $ ./qemu-system-sparc -M leon3_generic
  qemu-system-sparc: Can't read bios image (null)

So use LEON3_PROM_FILENAME instead of filename in case it is NULL to get a
less cryptic message:

  $ ./qemu-system-sparc -M leon3_generic
  qemu-system-sparc: Can't read bios image 'u-boot.bin'

Suggested-by: Mark Cave-Ayland <[email protected]>
Signed-off-by: KONRAD Frederic <[email protected]>
Signed-off-by: Mark Cave-Ayland <[email protected]>
hw/sparc/leon3.c
This page took 0.025123 seconds and 4 git commands to generate.