[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 63/68] hw/arm/raspi: Use the IEC binary prefix definitions
From: |
Peter Maydell |
Subject: |
[PULL 63/68] hw/arm/raspi: Use the IEC binary prefix definitions |
Date: |
Mon, 14 Oct 2019 17:03:59 +0100 |
From: Philippe Mathieu-Daudé <address@hidden>
IEC binary prefixes ease code review: the unit is explicit.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Alistair Francis <address@hidden>
Reviewed-by: Alex Bennée <address@hidden>
Reviewed-by: Cleber Rosa <address@hidden>
Message-id: address@hidden
Signed-off-by: Peter Maydell <address@hidden>
---
hw/arm/raspi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/arm/raspi.c b/hw/arm/raspi.c
index 74c062d05e3..615d7558790 100644
--- a/hw/arm/raspi.c
+++ b/hw/arm/raspi.c
@@ -230,7 +230,7 @@ static void raspi2_machine_init(MachineClass *mc)
mc->max_cpus = BCM283X_NCPUS;
mc->min_cpus = BCM283X_NCPUS;
mc->default_cpus = BCM283X_NCPUS;
- mc->default_ram_size = 1024 * 1024 * 1024;
+ mc->default_ram_size = 1 * GiB;
mc->ignore_memory_transaction_failures = true;
};
DEFINE_MACHINE("raspi2", raspi2_machine_init)
@@ -252,7 +252,7 @@ static void raspi3_machine_init(MachineClass *mc)
mc->max_cpus = BCM283X_NCPUS;
mc->min_cpus = BCM283X_NCPUS;
mc->default_cpus = BCM283X_NCPUS;
- mc->default_ram_size = 1024 * 1024 * 1024;
+ mc->default_ram_size = 1 * GiB;
}
DEFINE_MACHINE("raspi3", raspi3_machine_init)
#endif
--
2.20.1
- [PULL 53/68] hw/gpio: Add in AST2600 specific implementation, (continued)
- [PULL 53/68] hw/gpio: Add in AST2600 specific implementation, Peter Maydell, 2019/10/14
- [PULL 55/68] aspeed/i2c: Add AST2600 support, Peter Maydell, 2019/10/14
- [PULL 54/68] aspeed/i2c: Introduce an object class per SoC, Peter Maydell, 2019/10/14
- [PULL 58/68] m25p80: Add support for w25q512jv, Peter Maydell, 2019/10/14
- [PULL 59/68] aspeed: Add an AST2600 eval board, Peter Maydell, 2019/10/14
- [PULL 56/68] aspeed: Introduce an object class per SoC, Peter Maydell, 2019/10/14
- [PULL 57/68] aspeed/soc: Add AST2600 support, Peter Maydell, 2019/10/14
- [PULL 60/68] aspeed: Parameterise number of MACs, Peter Maydell, 2019/10/14
- [PULL 61/68] aspeed: add support for the Aspeed MII controller of the AST2600, Peter Maydell, 2019/10/14
- [PULL 62/68] aspeed/soc: Add ASPEED Video stub, Peter Maydell, 2019/10/14
- [PULL 63/68] hw/arm/raspi: Use the IEC binary prefix definitions,
Peter Maydell <=
- [PULL 64/68] hw/arm/bcm2835_peripherals: Improve logging, Peter Maydell, 2019/10/14
- [PULL 65/68] hw/arm/bcm2835_peripherals: Name various address spaces, Peter Maydell, 2019/10/14
- [PULL 66/68] hw/arm/bcm2835: Rename some definitions, Peter Maydell, 2019/10/14
- [PULL 68/68] hw/misc/bcm2835_mbox: Add trace events, Peter Maydell, 2019/10/14
- [PULL 67/68] hw/arm/bcm2835: Add various unimplemented peripherals, Peter Maydell, 2019/10/14