target/loongarch: Set unused flag with CSR registers
authorBibo Mao <maobibo@loongson.cn>
Thu, 16 Jan 2025 11:09:25 +0000 (19:09 +0800)
committerBibo Mao <maobibo@loongson.cn>
Fri, 24 Jan 2025 06:49:24 +0000 (14:49 +0800)
commitb5b13eb712e73545c4323d497ef1fabf7e63c360
tree551c725bd4aeabdc43e1f3d5f9b9ec59d76251ae
parentcb6fa4142f883684c7689944020aa95e422e0578
target/loongarch: Set unused flag with CSR registers

On LA464, some CSR registers are not used such as CSR_SAVE8 -
CSR_SAVE15, also CSR registers relative with MCE is not used now.

Flag CSRFL_UNUSED is added for these registers, so that it will
not dumped. In order to keep compatiblity, these CSR registers are
not removed since it is used in vmstate already.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
target/loongarch/cpu.c
target/loongarch/csr.c
target/loongarch/csr.h