在 2025/10/30 下午4:17, Bibo Mao 写道:
This patchset add PMU migration support and CSR register dump support with debug purpose, also it removes TLB migration support in TCG mode.--- v1 ... v2: 1. Move calling with function loongarch_la464_init_csr() after CPU is realized, since PMU feature is decided during realization stage. 2. Split origin patch #2 for better review 3. Add PMU event number info in structure CPUArchState rather than fixed number 4, save and restore PMU registers by its event number. --- Bibo Mao (3): target/loongarch: Add PMU migration support in KVM mode target/loongarch: Call function loongarch_la464_init_csr() after realized target/loongarch: Add PMU register dump support in KVM target/loongarch/cpu-csr.h | 4 +++ target/loongarch/cpu.c | 11 +++++--- target/loongarch/cpu.h | 4 +++ target/loongarch/csr.c | 32 ++++++++++++++++++++++ target/loongarch/kvm/kvm.c | 54 +++++++++++++++++++++++++++++++++++++- target/loongarch/machine.c | 21 +++++++++++++++ 6 files changed, 122 insertions(+), 4 deletions(-) base-commit: 36076d24f04ea9dc3357c0fbe7bb14917375819c
For thie series Reviewed-by: Song Gao <[email protected]> Thanks. Song Gao
