]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/riscv: add more RISCVCPUDef fields
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Feb 2025 10:31:30 +0000 (11:31 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 May 2025 06:18:53 +0000 (08:18 +0200)
commita6ba81424a7e751fbcee40dc1f5826ba29fddd30
treed1b4d7b7627fd401d56fb63a2ada9a7a633a3883
parent407254031edd649e6acde736e3f7e95bb0fdf299
target/riscv: add more RISCVCPUDef fields

Allow using RISCVCPUDef to replicate all the logic of custom .instance_init
functions.  To simulate inheritance, merge the child's RISCVCPUDef with
the parent and then finally move it to the CPUState at the end of
TYPE_RISCV_CPU's own instance_init function.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/riscv/cpu.c
target/riscv/cpu.h
target/riscv/kvm/kvm-cpu.c