diff options
author | Murilo Opsfelder Araujo <mopsfelder@gmail.com> | 2019-02-25 14:01:54 -0300 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-02-26 14:20:30 +1100 |
commit | 584ea7e76f9aeb010188e23769566617d53877e3 (patch) | |
tree | 05abb4808279f27bb3594ba0538ad85ca26491d0 /hw | |
parent | b45b56baeecd6391bdfed5bd66f2cd59a3c86a77 (diff) | |
download | qemu-584ea7e76f9aeb010188e23769566617d53877e3.zip qemu-584ea7e76f9aeb010188e23769566617d53877e3.tar.gz qemu-584ea7e76f9aeb010188e23769566617d53877e3.tar.bz2 |
ppc/pnv: add INITRD_MAX_SIZE constant
The current 0x10000000 value is actually 256MiB, not 128MB as the comment
suggests. Move it to a constant and fix the comment (no change in the size
value).
Signed-off-by: Murilo Opsfelder Araujo <muriloo@linux.ibm.com>
Message-Id: <20190225170155.1972-3-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c index 4144976..0cd6af4 100644 --- a/hw/ppc/pnv.c +++ b/hw/ppc/pnv.c @@ -56,6 +56,7 @@ #define KERNEL_LOAD_ADDR 0x20000000 #define KERNEL_MAX_SIZE (256 * MiB) #define INITRD_LOAD_ADDR 0x60000000 +#define INITRD_MAX_SIZE (256 * MiB) static const char *pnv_chip_core_typename(const PnvChip *o) { @@ -601,7 +602,7 @@ static void pnv_init(MachineState *machine) if (machine->initrd_filename) { pnv->initrd_base = INITRD_LOAD_ADDR; pnv->initrd_size = load_image_targphys(machine->initrd_filename, - pnv->initrd_base, 0x10000000); /* 128MB max */ + pnv->initrd_base, INITRD_MAX_SIZE); if (pnv->initrd_size < 0) { error_report("Could not load initial ram disk '%s'", machine->initrd_filename); |