[PATCH 0/6] target/loongarch: Enhancement about tcg mmu

Bibo Mao posted 6 patches 5 months, 2 weeks ago
Only 1 patches received!
There is a newer version of this series
hw/loongarch/virt.c                  |   1 +
target/loongarch/cpu-mmu.h           |  39 ++++++
target/loongarch/cpu.c               | 181 ++++++++++++++-------------
target/loongarch/cpu.h               |  11 --
target/loongarch/cpu_helper.c        |  99 +++++++++++----
target/loongarch/internals.h         |  20 ---
target/loongarch/kvm/kvm_loongarch.h |   4 +-
target/loongarch/tcg/csr_helper.c    |   1 +
target/loongarch/tcg/tlb_helper.c    | 103 +++------------
9 files changed, 227 insertions(+), 232 deletions(-)
create mode 100644 target/loongarch/cpu-mmu.h
[PATCH 0/6] target/loongarch: Enhancement about tcg mmu
Posted by Bibo Mao 5 months, 2 weeks ago
There is some enhance about LoongArch mmu tcg emulation, add new
header file cpu-mmu.h and function loongarch_check_pte(). Function
loongarch_check_pte() can work on both TLB entry and pte entry.

This patchset mainly is code cleanup and enhancement, its main
purpose is to work for hardware page table walk emluation in future.

Bibo Mao (6):
  target/loongarch: Move some function definition to kvm directory
  target/loongarch: Define function loongarch_cpu_post_init as static
  target/loongarch: Set page size in TLB misc with STLB
  target/loongarch: Add header file cpu-mmu.h
  target/loongarch: Add common function loongarch_check_pte()
  target/loongarch: Use loongarch_check_pte() with page table walking

 hw/loongarch/virt.c                  |   1 +
 target/loongarch/cpu-mmu.h           |  39 ++++++
 target/loongarch/cpu.c               | 181 ++++++++++++++-------------
 target/loongarch/cpu.h               |  11 --
 target/loongarch/cpu_helper.c        |  99 +++++++++++----
 target/loongarch/internals.h         |  20 ---
 target/loongarch/kvm/kvm_loongarch.h |   4 +-
 target/loongarch/tcg/csr_helper.c    |   1 +
 target/loongarch/tcg/tlb_helper.c    | 103 +++------------
 9 files changed, 227 insertions(+), 232 deletions(-)
 create mode 100644 target/loongarch/cpu-mmu.h


base-commit: e240f6cc25917f3138d9e95e0343ae23b63a3f8c
-- 
2.39.3