mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
hw/mips: 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/ $ git grep -n '[<>][<>]= ?[1-5]0' and modified manually. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20180625124238.25339-31-f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
27773d8eee
commit
be01029e5d
7 changed files with 33 additions and 24 deletions
|
@ -11,6 +11,7 @@
|
|||
#ifndef MIPS_GIC_H
|
||||
#define MIPS_GIC_H
|
||||
|
||||
#include "qemu/units.h"
|
||||
#include "hw/timer/mips_gictimer.h"
|
||||
#include "cpu.h"
|
||||
/*
|
||||
|
@ -19,7 +20,7 @@
|
|||
|
||||
/* The MIPS default location */
|
||||
#define GIC_BASE_ADDR 0x1bdc0000ULL
|
||||
#define GIC_ADDRSPACE_SZ (128 * 1024)
|
||||
#define GIC_ADDRSPACE_SZ (128 * KiB)
|
||||
|
||||
/* Constants */
|
||||
#define GIC_POL_POS 1
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "qemu/units.h"
|
||||
#include "cpu.h"
|
||||
|
||||
#define BIOS_SIZE (4 * 1024 * 1024)
|
||||
#define BIOS_SIZE (4 * MiB)
|
||||
#ifdef TARGET_WORDS_BIGENDIAN
|
||||
#define BIOS_FILENAME "mips_bios.bin"
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue