On 9/16/26 18:08, SignKirigami wrote:
- base = base & palen_mask; - + /* Strip flag bits (0-11) from base before address calculation. */ + base = (target_ulong)FIELD_EX64(base, TLBENTRY_64, PPN) + << TARGET_PAGE_BITS;
This drops the masking due to PALEN.
I think you want
/* Strip flag bits (0-11) from base before address calculation. */
base = base & palen_mask & ~MAKE_64BIT_MASK(0, 12);
r~
