qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] target/mips: Revert TARGET_PAGE_BITS_VARY and bug fixes
@ 2025-03-28 17:55 Richard Henderson
  2025-03-28 17:55 ` [PATCH 1/3] target/mips: Revert TARGET_PAGE_BITS_VARY Richard Henderson
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Richard Henderson @ 2025-03-28 17:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: philmd, chenhuacai, jiaxun.yang, arikalo

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



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-04-03 13:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-28 17:55 [PATCH 0/3] target/mips: Revert TARGET_PAGE_BITS_VARY and bug fixes Richard Henderson
2025-03-28 17:55 ` [PATCH 1/3] target/mips: Revert TARGET_PAGE_BITS_VARY Richard Henderson
2025-03-31 12:46   ` Philippe Mathieu-Daudé
2025-04-01  1:15   ` Huacai Chen
2025-04-01 13:39     ` Richard Henderson
2025-04-02  3:04       ` Huacai Chen
2025-04-02 18:11         ` Richard Henderson
2025-04-03  3:05           ` Huacai Chen
2025-04-03 13:51             ` Richard Henderson
2025-03-28 17:55 ` [PATCH 2/3] target/mips: Require even maskbits in update_pagemask Richard Henderson
2025-03-31 12:51   ` Philippe Mathieu-Daudé
2025-03-28 17:55 ` [PATCH 3/3] target/mips: Simplify and fix update_pagemask Richard Henderson
2025-03-31 12:54   ` Philippe Mathieu-Daudé
2025-03-31 14:12 ` [PATCH 0/3] target/mips: Revert TARGET_PAGE_BITS_VARY and bug fixes Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).