Re: [PATCH] target/loongarch: Put cpucfg operation before CSR register

2024-04-29 Thread gaosong
在 2024/4/28 上午11:16, Bibo Mao 写道: On Loongarch, cpucfg is register for cpu feature, some other registers depend on cpucfg feature such as perf CSR registers. Here put cpucfg read/write operations before CSR register, so that KVM knows how many perf CSR registers are valid from pre-set cpucfg feat

[PATCH] target/loongarch: Put cpucfg operation before CSR register

2024-04-27 Thread Bibo Mao
On Loongarch, cpucfg is register for cpu feature, some other registers depend on cpucfg feature such as perf CSR registers. Here put cpucfg read/write operations before CSR register, so that KVM knows how many perf CSR registers are valid from pre-set cpucfg feature information. Signed-off-by: Bib