diff options
author | Philippe Mathieu-Daudé | 2020-09-27 13:18:17 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé | 2020-10-17 13:59:40 +0200 |
commit | acab36ca25101930b263dd9e8afd9b244354d338 (patch) | |
tree | 2e1e801b61aac4df59e1b948b92f33a7ebf19e4b /include/hw | |
parent | hw/mips: Simplify loading 64-bit ELF kernels (diff) | |
download | qemu-acab36ca25101930b263dd9e8afd9b244354d338.tar.gz qemu-acab36ca25101930b263dd9e8afd9b244354d338.tar.xz qemu-acab36ca25101930b263dd9e8afd9b244354d338.zip |
hw/mips: Simplify code using ROUND_UP(INITRD_PAGE_SIZE)
Instead of using a INITRD_PAGE_MASK definition, use the
simpler INITRD_PAGE_SIZE one which allows us to simplify
the code by using directly the self-explicit ROUND_UP()
macro.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200927163943.614604-3-f4bug@amsat.org>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/mips/mips.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/hw/mips/mips.h b/include/hw/mips/mips.h index 0af4c3d5d7..6c9c8805f3 100644 --- a/include/hw/mips/mips.h +++ b/include/hw/mips/mips.h @@ -2,8 +2,10 @@ #define HW_MIPS_H /* Definitions for mips board emulation. */ +#include "qemu/units.h" + /* Kernels can be configured with 64KB pages */ -#define INITRD_PAGE_MASK (~((1 << 16) - 1)) +#define INITRD_PAGE_SIZE (64 * KiB) #include "exec/memory.h" |