aboutsummaryrefslogtreecommitdiff
path: root/hw/arm/sbsa-ref.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-10-26 10:30:16 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-12-10 12:15:04 -0500
commit0ad3b5d3ee312e893d92be2de4b7123e03e6119d (patch)
tree6311432e6184f5d42b80f258d1967922e2778a70 /hw/arm/sbsa-ref.c
parent2c4a83eb82eabca549ae5b55342976e6fb200a0b (diff)
downloadqemu-0ad3b5d3ee312e893d92be2de4b7123e03e6119d.zip
qemu-0ad3b5d3ee312e893d92be2de4b7123e03e6119d.tar.gz
qemu-0ad3b5d3ee312e893d92be2de4b7123e03e6119d.tar.bz2
arm: remove bios_name
Get the firmware name from the MachineState object. Cc: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20201026143028.3034018-4-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/arm/sbsa-ref.c')
-rw-r--r--hw/arm/sbsa-ref.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c
index 4a5ea42..8272983 100644
--- a/hw/arm/sbsa-ref.c
+++ b/hw/arm/sbsa-ref.c
@@ -319,6 +319,7 @@ static bool sbsa_firmware_init(SBSAMachineState *sms,
MemoryRegion *sysmem,
MemoryRegion *secure_sysmem)
{
+ const char *bios_name;
int i;
BlockBackend *pflash_blk0;
@@ -332,6 +333,7 @@ static bool sbsa_firmware_init(SBSAMachineState *sms,
pflash_blk0 = pflash_cfi01_get_blk(sms->flash[0]);
+ bios_name = MACHINE(sms)->firmware;
if (bios_name) {
char *fname;
MemoryRegion *mr;