mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
hw/xen: 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: Alan Robinson <Alan.Robinson@ts.fujitsu.com> Message-Id: <20180625124238.25339-12-f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
968dfd0516
commit
8f951a13f0
3 changed files with 11 additions and 8 deletions
|
@ -9,6 +9,7 @@
|
|||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu/units.h"
|
||||
#include "qemu/error-report.h"
|
||||
|
||||
#include <sys/resource.h>
|
||||
|
@ -46,7 +47,7 @@
|
|||
* From empirical tests I observed that qemu use 75MB more than the
|
||||
* max_mcache_size.
|
||||
*/
|
||||
#define NON_MCACHE_MEMORY_SIZE (80 * 1024 * 1024)
|
||||
#define NON_MCACHE_MEMORY_SIZE (80 * MiB)
|
||||
|
||||
typedef struct MapCacheEntry {
|
||||
hwaddr paddr_index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue