[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 1/6] hw/arm/xilinx_zynq: Use the IEC binary prefix definitions
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 1/6] hw/arm/xilinx_zynq: Use the IEC binary prefix definitions |
Date: |
Mon, 21 Oct 2019 21:06:48 +0200 |
IEC binary prefixes ease code review: the unit is explicit.
Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/arm/xilinx_zynq.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/arm/xilinx_zynq.c b/hw/arm/xilinx_zynq.c
index c14774e542..3a0fa5b23f 100644
--- a/hw/arm/xilinx_zynq.c
+++ b/hw/arm/xilinx_zynq.c
@@ -16,6 +16,7 @@
*/
#include "qemu/osdep.h"
+#include "qemu/units.h"
#include "qapi/error.h"
#include "cpu.h"
#include "hw/sysbus.h"
@@ -194,7 +195,7 @@ static void zynq_init(MachineState *machine)
memory_region_add_subregion(address_space_mem, 0, ext_ram);
/* 256K of on-chip memory */
- memory_region_init_ram(ocm_ram, NULL, "zynq.ocm_ram", 256 << 10,
+ memory_region_init_ram(ocm_ram, NULL, "zynq.ocm_ram", 256 * KiB,
&error_fatal);
memory_region_add_subregion(address_space_mem, 0xFFFC0000, ocm_ram);
--
2.21.0
- [PATCH v2 0/6] hw/arm: Create the RAM in the board, Philippe Mathieu-Daudé, 2019/10/21
- [PATCH v2 1/6] hw/arm/xilinx_zynq: Use the IEC binary prefix definitions,
Philippe Mathieu-Daudé <=
- [PATCH v2 3/6] hw/arm/collie: Create the RAM in the board, Philippe Mathieu-Daudé, 2019/10/21
- [PATCH v2 2/6] hw/arm/mps2: Use the IEC binary prefix definitions, Philippe Mathieu-Daudé, 2019/10/21
- [PATCH v2 4/6] hw/arm/omap2: Create the RAM in the board, Philippe Mathieu-Daudé, 2019/10/21
- [PATCH v2 5/6] hw/arm/omap1: Create the RAM in the board, Philippe Mathieu-Daudé, 2019/10/21
- [PATCH v2 6/6] hw/arm/digic4: Inline digic4_board_setup_ram() function, Philippe Mathieu-Daudé, 2019/10/21
- Re: [PATCH v2 0/6] hw/arm: Create the RAM in the board, Alistair Francis, 2019/10/21
- Re: [PATCH v2 0/6] hw/arm: Create the RAM in the board, Peter Maydell, 2019/10/22