diff options
author | Cédric Le Goater | 2021-10-12 08:20:08 +0200 |
---|---|---|
committer | Cédric Le Goater | 2021-10-12 08:20:08 +0200 |
commit | 6bb55e796740a0b685831faa784efb0c38dd151c (patch) | |
tree | 1aeb253fa8218dcd193061ff4b2d0a57445b9bd5 /include/hw | |
parent | aspeed/smc: Remove the 'flash' attribute from AspeedSMCFlash (diff) | |
download | qemu-6bb55e796740a0b685831faa784efb0c38dd151c.tar.gz qemu-6bb55e796740a0b685831faa784efb0c38dd151c.tar.xz qemu-6bb55e796740a0b685831faa784efb0c38dd151c.zip |
aspeed/smc: Remove the 'size' attribute from AspeedSMCFlash
AspeedSMCFlash::size is only used to compute the initial size of the
boot_rom region. Not very useful, so directly call memory_region_size()
instead.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/ssi/aspeed_smc.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/hw/ssi/aspeed_smc.h b/include/hw/ssi/aspeed_smc.h index f32f66f9a8..097bb6aaf5 100644 --- a/include/hw/ssi/aspeed_smc.h +++ b/include/hw/ssi/aspeed_smc.h @@ -34,7 +34,6 @@ typedef struct AspeedSMCFlash { struct AspeedSMCState *controller; uint8_t id; - uint32_t size; MemoryRegion mmio; } AspeedSMCFlash; |