qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 19/30] hw/nios2: use the BYTE-based definitions


From: Philippe Mathieu-Daudé
Subject: [Qemu-devel] [PATCH 19/30] hw/nios2: use the BYTE-based definitions
Date: Thu, 15 Feb 2018 01:28:49 -0300

It ease code review, unit is explicit.

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
 hw/nios2/boot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/nios2/boot.c b/hw/nios2/boot.c
index 771e00267b..911f28c0d8 100644
--- a/hw/nios2/boot.c
+++ b/hw/nios2/boot.c
@@ -176,7 +176,7 @@ void nios2_load_kernel(Nios2CPU *cpu, hwaddr ddr_base,
             high = ddr_base + kernel_size;
         }
 
-        high = ROUND_UP(high, 1024 * 1024);
+        high = ROUND_UP(high, 1 * M_BYTE);
 
         /* If initrd is available, it goes after the kernel, aligned to 1M. */
         if (initrd_filename) {
-- 
2.16.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]