hw/mips: Simplify code using ROUND_UP(INITRD_PAGE_SIZE)
commitacab36ca25101930b263dd9e8afd9b244354d338
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 27 Sep 2020 11:18:17 +0000 (27 13:18 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 17 Oct 2020 11:59:40 +0000 (17 13:59 +0200)
tree2e1e801b61aac4df59e1b948b92f33a7ebf19e4b
parent9d585eaa87bf1c5f66e12d6c4a8a38c80f69c5da
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>
hw/mips/fuloong2e.c
hw/mips/malta.c
hw/mips/mipssim.c
hw/mips/r4k.c
include/hw/mips/mips.h