diff options
author | Paolo Bonzini | 2018-06-29 16:22:13 +0200 |
---|---|---|
committer | Paolo Bonzini | 2018-07-02 15:41:16 +0200 |
commit | d471bf3ebbabd14f092655485f7562895b22e6b0 (patch) | |
tree | 3d1b4ed2738cfd0b36936a478cd40be38afd868b /hw/i386/acpi-build.c | |
parent | hw/ppc: Use the IEC binary prefix definitions (diff) | |
download | qemu-d471bf3ebbabd14f092655485f7562895b22e6b0.tar.gz qemu-d471bf3ebbabd14f092655485f7562895b22e6b0.tar.xz qemu-d471bf3ebbabd14f092655485f7562895b22e6b0.zip |
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>
Diffstat (limited to 'hw/i386/acpi-build.c')
-rw-r--r-- | hw/i386/acpi-build.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 9bc6d97ea1..796de91bf3 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -2248,8 +2248,8 @@ build_tpm2(GArray *table_data, BIOSLinker *linker, GArray *tcpalog) (void *)tpm2_ptr, "TPM2", sizeof(*tpm2_ptr), 4, NULL, NULL); } -#define HOLE_640K_START (640 * 1024) -#define HOLE_640K_END (1024 * 1024) +#define HOLE_640K_START (640 * KiB) +#define HOLE_640K_END (1 * MiB) static void build_srat_hotpluggable_memory(GArray *table_data, uint64_t base, uint64_t len, int default_node) |