qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] LoongArch/tcg: Add hardware page table walker support
@ 2024-10-10  6:35 Song Gao
  2024-10-10  6:35 ` [PATCH v2 1/5] target/loongarch: Add a new cpu_type la664 Song Gao
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Song Gao @ 2024-10-10  6:35 UTC (permalink / raw)
  To: qemu-devel; +Cc: richard.henderson, maobibo, philmd

Loongson-3A6000 and newer processors have hardware page table walker
(PTW) support. PTW can handle all fastpaths of PIL/PIS/PIF/PIE
exceptions by hardware.

V2:
- Remove the '21' magic value, patch1;
- Add a flag is_debug for debug access, patch5;
- Use qatomic_cmpxchg to change the new pte_val, patch5.

Song Gao (5):
  target/loongarch: Add a new cpu_type la664
  target/loongarch: Add do_lddir/ldpte()
  target/loongarch: Add do_fill_tlb_entry()
  target/loongarch: Add get_random_tlb_index()
  target/loongarch/tcg: Add hardware page table walker support

 target/loongarch/cpu-csr.h        |   3 +
 target/loongarch/cpu.c            |  51 ++++--
 target/loongarch/cpu.h            |   1 +
 target/loongarch/cpu_helper.c     |  26 ++-
 target/loongarch/internals.h      |   4 +-
 target/loongarch/tcg/tlb_helper.c | 277 ++++++++++++++++++++++++------
 6 files changed, 293 insertions(+), 69 deletions(-)

-- 
2.33.0



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

end of thread, other threads:[~2024-11-07 12:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-10  6:35 [PATCH v2 0/5] LoongArch/tcg: Add hardware page table walker support Song Gao
2024-10-10  6:35 ` [PATCH v2 1/5] target/loongarch: Add a new cpu_type la664 Song Gao
2024-10-10  6:35 ` [PATCH v2 2/5] target/loongarch: Add do_lddir/ldpte() Song Gao
2024-10-10  6:35 ` [PATCH v2 3/5] target/loongarch: Add do_fill_tlb_entry() Song Gao
2024-10-10  6:35 ` [PATCH v2 4/5] target/loongarch: Add get_random_tlb_index() Song Gao
2024-10-10  6:35 ` [PATCH v2 5/5] target/loongarch/tcg: Add hardware page table walker support Song Gao
2024-11-05 14:27   ` Richard Henderson
2024-11-07 12:41     ` gaosong
2024-10-22 11:56 ` [PATCH v2 0/5] LoongArch/tcg: " gaosong

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).