From: Murilo Opsfelder Araujo Date: Mon, 25 Feb 2019 17:01:55 +0000 (-0300) Subject: ppc/pnv: use IEC binary prefixes to represent sizes X-Git-Tag: v4.0.0-rc0~77^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b268a6162da8ef9daa6384f24d4b95a0385081eb;p=thirdparty%2Fqemu.git ppc/pnv: use IEC binary prefixes to represent sizes Using IEC binary prefixes from qemu/units.h provides a more human-friendly value to size constants. Suggested-by: Eric Blake Signed-off-by: Murilo Opsfelder Araujo Message-Id: <20190225170155.1972-4-muriloo@linux.ibm.com> Reviewed-by: Cédric Le Goater Signed-off-by: David Gibson --- diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c index 0cd6af46698..3d5dfef220e 100644 --- a/hw/ppc/pnv.c +++ b/hw/ppc/pnv.c @@ -47,11 +47,11 @@ #include -#define FDT_MAX_SIZE 0x00100000 +#define FDT_MAX_SIZE (1 * MiB) #define FW_FILE_NAME "skiboot.lid" #define FW_LOAD_ADDR 0x0 -#define FW_MAX_SIZE 0x00400000 +#define FW_MAX_SIZE (4 * MiB) #define KERNEL_LOAD_ADDR 0x20000000 #define KERNEL_MAX_SIZE (256 * MiB)