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

Richard Henderson posted 3 patches 3 days, 14 hours ago
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(-)
[PATCH 0/3] target/mips: Revert TARGET_PAGE_BITS_VARY and bug fixes
Posted by Richard Henderson 3 days, 14 hours ago
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(-)

-- 
2.43.0
Re: [PATCH 0/3] target/mips: Revert TARGET_PAGE_BITS_VARY and bug fixes
Posted by Philippe Mathieu-Daudé 17 hours ago
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!