aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMurilo Opsfelder Araujo <mopsfelder@gmail.com>2019-02-25 14:01:55 -0300
committerDavid Gibson <david@gibson.dropbear.id.au>2019-02-26 14:20:30 +1100
commitb268a6162da8ef9daa6384f24d4b95a0385081eb (patch)
tree65fb668e87b63b9781918999fe945121980c446d /hw
parent584ea7e76f9aeb010188e23769566617d53877e3 (diff)
downloadqemu-b268a6162da8ef9daa6384f24d4b95a0385081eb.zip
qemu-b268a6162da8ef9daa6384f24d4b95a0385081eb.tar.gz
qemu-b268a6162da8ef9daa6384f24d4b95a0385081eb.tar.bz2
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 <eblake@redhat.com> Signed-off-by: Murilo Opsfelder Araujo <muriloo@linux.ibm.com> Message-Id: <20190225170155.1972-4-muriloo@linux.ibm.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw')
-rw-r--r--hw/ppc/pnv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c
index 0cd6af4..3d5dfef 100644
--- a/hw/ppc/pnv.c
+++ b/hw/ppc/pnv.c
@@ -47,11 +47,11 @@
#include <libfdt.h>
-#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)