mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
hw/ppc: Use the IEC binary prefix definitions
It eases code review, unit is explicit. Patch generated using: $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ and modified manually. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Acked-by: David Gibson <david@gibson.dropbear.id.au> Message-Id: <20180625124238.25339-33-f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
be01029e5d
commit
ab3dd74924
20 changed files with 84 additions and 70 deletions
|
@ -1,6 +1,7 @@
|
|||
#ifndef HW_SPAPR_H
|
||||
#define HW_SPAPR_H
|
||||
|
||||
#include "qemu/units.h"
|
||||
#include "sysemu/dma.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/ppc/xics.h"
|
||||
|
@ -749,8 +750,8 @@ int spapr_rng_populate_dt(void *fdt);
|
|||
*/
|
||||
#define SPAPR_MAX_RAM_SLOTS 32
|
||||
|
||||
/* 1GB alignment for device memory region */
|
||||
#define SPAPR_DEVICE_MEM_ALIGN (1ULL << 30)
|
||||
/* 1GB alignment for hotplug memory region */
|
||||
#define SPAPR_DEVICE_MEM_ALIGN (1 * GiB)
|
||||
|
||||
/*
|
||||
* Number of 32 bit words in each LMB list entry in ibm,dynamic-memory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue