aboutsummaryrefslogtreecommitdiff
path: root/hw/i386/acpi-build.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2018-06-29 16:22:13 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2018-07-02 15:41:16 +0200
commitd471bf3ebbabd14f092655485f7562895b22e6b0 (patch)
tree3d1b4ed2738cfd0b36936a478cd40be38afd868b /hw/i386/acpi-build.c
parentab3dd74924162f5a462b5c6514c34d918922d0fb (diff)
downloadqemu-d471bf3ebbabd14f092655485f7562895b22e6b0.zip
qemu-d471bf3ebbabd14f092655485f7562895b22e6b0.tar.gz
qemu-d471bf3ebbabd14f092655485f7562895b22e6b0.tar.bz2
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index 9bc6d97..796de91 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)