mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
9d585eaa87
commit
acab36ca25
5 changed files with 9 additions and 10 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue