mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
hw/i386: Use the IEC binary prefix definitions
It eases code review, unit is explicit. Patch generated using: $ git grep -E '[<>][<>]=? ?[1-5]0' hw/ include/hw/ and modified manually. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
ab3dd74924
commit
d471bf3ebb
5 changed files with 22 additions and 21 deletions
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include "qemu/osdep.h"
|
||||
|
||||
#include "qemu/units.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/loader.h"
|
||||
#include "hw/i386/pc.h"
|
||||
|
@ -131,7 +132,7 @@ static void pc_init1(MachineState *machine,
|
|||
if (lowmem > 0xc0000000) {
|
||||
lowmem = 0xc0000000;
|
||||
}
|
||||
if (lowmem & ((1ULL << 30) - 1)) {
|
||||
if (lowmem & (1 * GiB - 1)) {
|
||||
warn_report("Large machine and max_ram_below_4g "
|
||||
"(%" PRIu64 ") not a multiple of 1G; "
|
||||
"possible bad performance.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue