diff options
author | BALATON Zoltan | 2022-10-28 13:56:28 +0200 |
---|---|---|
committer | Mark Cave-Ayland | 2022-10-31 19:48:23 +0100 |
commit | 458586fe19585d6949c79c898e2181048565c774 (patch) | |
tree | f12d0f55f8393f6aed9adb1e171aa32959c05a6f /hw/misc | |
parent | hw/ppc/mac.h: Rename to include/hw/nvram/mac_nvram.h (diff) | |
download | qemu-458586fe19585d6949c79c898e2181048565c774.tar.gz qemu-458586fe19585d6949c79c898e2181048565c774.tar.xz qemu-458586fe19585d6949c79c898e2181048565c774.zip |
mac_nvram: Use NVRAM_SIZE constant
The NVRAM_SIZE constant was defined but not used. Rename it to
MACIO_NVRAM_SIZE to match the device model and use it where appropriate.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <5b53c70438dfb46837af8a094e753706b06c4ec6.1666957578.git.balaton@eik.bme.hu>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/misc')
-rw-r--r-- | hw/misc/macio/macio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c index 93a7c7bbc8..08dbdd7fc0 100644 --- a/hw/misc/macio/macio.c +++ b/hw/misc/macio/macio.c @@ -226,7 +226,7 @@ static void macio_oldworld_init(Object *obj) object_initialize_child(OBJECT(s), "nvram", &os->nvram, TYPE_MACIO_NVRAM); dev = DEVICE(&os->nvram); - qdev_prop_set_uint32(dev, "size", 0x2000); + qdev_prop_set_uint32(dev, "size", MACIO_NVRAM_SIZE); qdev_prop_set_uint32(dev, "it_shift", 4); for (i = 0; i < 2; i++) { |