aboutsummaryrefslogtreecommitdiff
path: root/hw/block/tc58128.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2018-06-25 09:42:05 -0300
committerPaolo Bonzini <pbonzini@redhat.com>2018-07-02 15:41:13 +0200
commite8400cf3856a6de77d6080dfc9c84f226006f07d (patch)
tree0a6dc0ca6483bbe2f838da6dbe8044a996b7ff76 /hw/block/tc58128.c
parent3d779b93e0a26e81066f8afc96e2d3d37d6ce1af (diff)
downloadqemu-e8400cf3856a6de77d6080dfc9c84f226006f07d.zip
qemu-e8400cf3856a6de77d6080dfc9c84f226006f07d.tar.gz
qemu-e8400cf3856a6de77d6080dfc9c84f226006f07d.tar.bz2
hw/block: 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> Message-Id: <20180625124238.25339-14-f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/block/tc58128.c')
-rw-r--r--hw/block/tc58128.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/block/tc58128.c b/hw/block/tc58128.c
index 1d9f7ee..808ad76 100644
--- a/hw/block/tc58128.c
+++ b/hw/block/tc58128.c
@@ -1,4 +1,5 @@
#include "qemu/osdep.h"
+#include "qemu/units.h"
#include "hw/hw.h"
#include "hw/sh4/sh.h"
#include "hw/loader.h"
@@ -26,7 +27,7 @@ typedef struct {
static tc58128_dev tc58128_devs[2];
-#define FLASH_SIZE (16*1024*1024)
+#define FLASH_SIZE (16 * MiB)
static void init_dev(tc58128_dev * dev, const char *filename)
{