hw/block: Use the IEC binary prefix definitions
commite8400cf3856a6de77d6080dfc9c84f226006f07d
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 25 Jun 2018 12:42:05 +0000 (25 09:42 -0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Jul 2018 13:41:13 +0000 (2 15:41 +0200)
tree0a6dc0ca6483bbe2f838da6dbe8044a996b7ff76
parent3d779b93e0a26e81066f8afc96e2d3d37d6ce1af
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>
hw/block/m25p80.c
hw/block/nvme.c
hw/block/tc58128.c