On 29/10/26 21:43, Kirill A. Korinsky wrote:
Pass the CPU state to compute_pagemask() and update both callers.
This prepares for CPU specific PageMask validation without changing
behavior.
Signed-off-by: Kirill A. Korinsky <[email protected]>
Suggested-by: Philippe Mathieu-Daudé <[email protected]>
---
target/mips/tcg/system/cp0_helper.c | 4 ++--
target/mips/tcg/system/tlb_helper.c | 2 +-
target/mips/tcg/tcg-internal.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/target/mips/tcg/system/cp0_helper.c
b/target/mips/tcg/system/cp0_helper.c
index 33fb7365d7..3fc55314a8 100644
--- a/target/mips/tcg/system/cp0_helper.c
+++ b/target/mips/tcg/system/cp0_helper.c
@@ -882,7 +882,7 @@ void HELPER(mtc0_memorymapid)(CPUMIPSState *env,
target_ulong arg1)
}
}
-uint32_t compute_pagemask(uint32_t val)
+uint32_t compute_pagemask(CPUMIPSState *env, uint32_t val)
'const CPUMIPSState *env', otherwise:
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>