summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorCédric Le Goater2021-10-12 08:20:08 +0200
committerCédric Le Goater2021-10-12 08:20:08 +0200
commit6bb55e796740a0b685831faa784efb0c38dd151c (patch)
tree1aeb253fa8218dcd193061ff4b2d0a57445b9bd5 /include/hw
parentaspeed/smc: Remove the 'flash' attribute from AspeedSMCFlash (diff)
downloadqemu-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.h1
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;