mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
hw: Use IEC binary prefix definitions from "qemu/units.h"
Code change produced with: $ git ls-files | egrep '\.[ch]$' | \ xargs sed -i -e 's/\(\W[KMGTPE]\)_BYTE/\1iB/g' Suggested-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Acked-by: David Gibson <david@gibson.dropbear.id.au> (ppc parts) Message-Id: <20180625124238.25339-6-f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5fa96cad01
commit
d23b6caadb
19 changed files with 76 additions and 80 deletions
|
@ -556,7 +556,7 @@ static void pnv_init(MachineState *machine)
|
|||
char *chip_typename;
|
||||
|
||||
/* allocate RAM */
|
||||
if (machine->ram_size < (1 * G_BYTE)) {
|
||||
if (machine->ram_size < (1 * GiB)) {
|
||||
warn_report("skiboot may not work with < 1GB of RAM");
|
||||
}
|
||||
|
||||
|
@ -1174,7 +1174,7 @@ static void pnv_machine_class_init(ObjectClass *oc, void *data)
|
|||
* storage */
|
||||
mc->no_parallel = 1;
|
||||
mc->default_boot_order = NULL;
|
||||
mc->default_ram_size = 1 * G_BYTE;
|
||||
mc->default_ram_size = 1 * GiB;
|
||||
xic->icp_get = pnv_icp_get;
|
||||
xic->ics_get = pnv_ics_get;
|
||||
xic->ics_resend = pnv_ics_resend;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue