mbox series

[0/3] target/mips: Revert TARGET_PAGE_BITS_VARY and bug fixes

Message ID 20250328175526.368121-1-richard.henderson@linaro.org (mailing list archive)
Headers show
Series target/mips: Revert TARGET_PAGE_BITS_VARY and bug fixes | expand

Message

Richard Henderson March 28, 2025, 5:55 p.m. UTC
The logic behind changing the system page size because of what the
Loongson kernel "prefers" is flawed.

In the Loongson-2E manual, section 5.5, it is clear that the cpu
supports a 4k page size (along with many others).  Therefore we
must continue to support a 4k page size.

While in the area, I noticed two other bugs related to update_pagemask.


r~


Richard Henderson (3):
  target/mips: Revert TARGET_PAGE_BITS_VARY
  target/mips: Require even maskbits in update_pagemask
  target/mips: Simplify and fix update_pagemask

 target/mips/cpu-param.h             |  5 -----
 target/mips/tcg/tcg-internal.h      |  2 +-
 hw/mips/fuloong2e.c                 |  1 -
 hw/mips/loongson3_virt.c            |  1 -
 target/mips/tcg/system/cp0_helper.c | 32 +++++++++--------------------
 target/mips/tcg/system/tlb_helper.c |  4 ++--
 6 files changed, 13 insertions(+), 32 deletions(-)

Comments

Philippe Mathieu-Daudé March 31, 2025, 2:12 p.m. UTC | #1
On 28/3/25 18:55, Richard Henderson wrote:

> Richard Henderson (3):
>    target/mips: Revert TARGET_PAGE_BITS_VARY
>    target/mips: Require even maskbits in update_pagemask
>    target/mips: Simplify and fix update_pagemask

Series queued, thanks!