On 2/10/26 21:33, Anton Johansson wrote:
@@ -364,3 +366,9 @@ hwaddr loongarch_cpu_get_phys_page_debug(CPUState *cs,
vaddr addr)
}
return context.physical;
}
+
+uint64_t loongarch_palen_mask(CPULoongArchState *env)
+{
+ uint64_t phys_bits = FIELD_EX32(env->cpucfg[1], CPUCFG1, PALEN);
+ return MAKE_64BIT_MASK(0, phys_bits);
+}
PALEN holds bits - 1. Otherwise, Reviewed-by: Richard Henderson <[email protected]> r~
