qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] target/loongarch: Code cleanup with function loongarch_map_address
@ 2025-04-14  1:25 Bibo Mao
  2025-04-14  1:25 ` [PATCH 1/5] target/loongarch: Move header file helper.h to directory tcg Bibo Mao
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Bibo Mao @ 2025-04-14  1:25 UTC (permalink / raw)
  To: Song Gao; +Cc: qemu-devel

Get physical address from virtual address is important for qmp command to
dump memory content. In TCG mode, it searches TLB tables firstly and
then do page table walker. In KVM mode, there is no TLB tables and page
table walker is used directly.

Here TLB tables searching is moved to directory tcg, and code about page
table walker is put in common part so that it can be used in KVM mode
also.

Bibo Mao (5):
  target/loongarch: Move header file helper.h to directory tcg
  target/loongarch: Add function loongarch_get_addr_from_tlb
  target/loongarch: Move function get_dir_base_width to common directory
  target/loongarch: Set function loongarch_map_address() with common
    code
  target/loongarch: Move function loongarch_tlb_search to directory tcg

 target/loongarch/cpu_helper.c     | 173 ++-----
 target/loongarch/helper.h         | 720 +----------------------------
 target/loongarch/internals.h      |  14 +-
 target/loongarch/tcg/helper.h     | 722 ++++++++++++++++++++++++++++++
 target/loongarch/tcg/tlb_helper.c | 172 +++++--
 5 files changed, 913 insertions(+), 888 deletions(-)
 create mode 100644 target/loongarch/tcg/helper.h


base-commit: 56c6e249b6988c1b6edc2dd34ebb0f1e570a1365
-- 
2.39.3



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

end of thread, other threads:[~2025-04-15  6:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-14  1:25 [PATCH 0/5] target/loongarch: Code cleanup with function loongarch_map_address Bibo Mao
2025-04-14  1:25 ` [PATCH 1/5] target/loongarch: Move header file helper.h to directory tcg Bibo Mao
2025-04-15  3:22   ` Richard Henderson
2025-04-15  6:07     ` bibo mao
2025-04-14  1:25 ` [PATCH 2/5] target/loongarch: Add function loongarch_get_addr_from_tlb Bibo Mao
2025-04-14  1:25 ` [PATCH 3/5] target/loongarch: Move function get_dir_base_width to common directory Bibo Mao
2025-04-14  1:25 ` [PATCH 4/5] target/loongarch: Set function loongarch_map_address() with common code Bibo Mao
2025-04-14 10:51   ` Philippe Mathieu-Daudé
2025-04-15  1:46     ` bibo mao
2025-04-14  1:25 ` [PATCH 5/5] target/loongarch: Move function loongarch_tlb_search to directory tcg Bibo Mao
2025-04-14 10:52 ` [PATCH 0/5] target/loongarch: Code cleanup with function loongarch_map_address 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).