OSDN Git Service

dump: Replace opaque DumpState pointer with a typed one
authorJanosch Frank <frankja@linux.ibm.com>
Thu, 11 Aug 2022 12:10:54 +0000 (12:10 +0000)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 6 Oct 2022 15:30:43 +0000 (19:30 +0400)
commit1af0006ab959864dfa2f59e9136c5fb93000b61f
treecc6d62cd7a2a9ec13f9c3565998b552068b1dd2d
parentf1d33f55c47dfdaf8daacd618588ad3ae4c452d1
dump: Replace opaque DumpState pointer with a typed one

It's always better to convey the type of a pointer if at all
possible. So let's add the DumpState typedef to typedefs.h and move
the dump note functions from the opaque pointers to DumpState
pointers.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
CC: Peter Maydell <peter.maydell@linaro.org>
CC: Cédric Le Goater <clg@kaod.org>
CC: Daniel Henrique Barboza <danielhb413@gmail.com>
CC: David Gibson <david@gibson.dropbear.id.au>
CC: Greg Kurz <groug@kaod.org>
CC: Palmer Dabbelt <palmer@dabbelt.com>
CC: Alistair Francis <alistair.francis@wdc.com>
CC: Bin Meng <bin.meng@windriver.com>
CC: Cornelia Huck <cohuck@redhat.com>
CC: Thomas Huth <thuth@redhat.com>
CC: Richard Henderson <richard.henderson@linaro.org>
CC: David Hildenbrand <david@redhat.com>
Acked-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220811121111.9878-2-frankja@linux.ibm.com>
12 files changed:
include/hw/core/sysemu-cpu-ops.h
include/qemu/typedefs.h
target/arm/arch_dump.c
target/arm/cpu.h
target/i386/arch_dump.c
target/i386/cpu.h
target/ppc/arch_dump.c
target/ppc/cpu.h
target/riscv/arch_dump.c
target/riscv/cpu.h
target/s390x/arch_dump.c
target/s390x/s390x-internal.h