diff options
author | Philippe Mathieu-Daudé | 2018-06-25 14:42:11 +0200 |
---|---|---|
committer | Paolo Bonzini | 2018-07-02 15:41:14 +0200 |
commit | c108cc59dc4df978a7f4e7f34f2463b232522954 (patch) | |
tree | 6138da60a490029ccf79763f877d435320219a80 /hw/hppa/dino.c | |
parent | hw/s390x: Use the IEC binary prefix definitions (diff) | |
download | qemu-c108cc59dc4df978a7f4e7f34f2463b232522954.tar.gz qemu-c108cc59dc4df978a7f4e7f34f2463b232522954.tar.xz qemu-c108cc59dc4df978a7f4e7f34f2463b232522954.zip |
hw/hppa: 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>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20180625124238.25339-20-f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/hppa/dino.c')
-rw-r--r-- | hw/hppa/dino.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c index 26f2704cd5..564b938e3a 100644 --- a/hw/hppa/dino.c +++ b/hw/hppa/dino.c @@ -11,6 +11,7 @@ */ #include "qemu/osdep.h" +#include "qemu/units.h" #include "qapi/error.h" #include "cpu.h" #include "hw/hw.h" @@ -76,7 +77,7 @@ /* #define xxx 0x200 - bit 9 not used */ #define RS232INT 0x400 -#define DINO_MEM_CHUNK_SIZE (8 * 1024 * 1024) /* 8MB */ +#define DINO_MEM_CHUNK_SIZE (8 * MiB) #define DINO_PCI_HOST_BRIDGE(obj) \ OBJECT_CHECK(DinoState, (obj), TYPE_DINO_PCI_HOST_BRIDGE) |