Hi, In this new version we're adding Phil's comments in v2, in particular the need for an unrealize() callback to free the stuff we're now allocating.
Patches based on alistair/riscv-to-apply.next. Changes from v2: - patch 1 (new): - add RISC-V CPU unrealize callback - patch 2 (former 1): - free allocated debug trigger arrays during unrealize() - change version_id and minimum_version from vmstate_debug - patch 3 (former 2): - do not touch vmstate_debug version_id/minimum_version_id - added Phil's R-b - v2 link: https://lore.kernel.org/qemu-devel/[email protected]/ Daniel Henrique Barboza (3): target/riscv/cpu: add CPU unrealize callback target/riscv: dynamic alloc of debug trigger arrays target/riscv: add 'num-triggers' debug property target/riscv/cpu.c | 26 ++++++++++++++++++++++++ target/riscv/cpu.h | 39 ++++++++++++++++++++++++++++------- target/riscv/csr.c | 2 +- target/riscv/debug.c | 46 ++++++++++++++++++++++++++++++++++-------- target/riscv/debug.h | 1 + target/riscv/machine.c | 16 ++++++++++----- 6 files changed, 109 insertions(+), 21 deletions(-) -- 2.43.0
