]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/loongarch: Put cpucfg operation before CSR register
authorBibo Mao <maobibo@loongson.cn>
Sun, 28 Apr 2024 03:16:51 +0000 (11:16 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 9 May 2024 07:19:22 +0000 (15:19 +0800)
commit5872966db7abaa7f8753541b7a9f242df9752b50
treea6455d53c93133bd44369dd52371f3f8a1a7fe76
parent6f703a48410db455057cc90c170e908de83b23fc
target/loongarch: Put cpucfg operation before CSR register

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: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240428031651.1354587-1-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
target/loongarch/kvm/kvm.c