For now, we keep the global cpu_get_note_size symbol defined.
Signed-off-by: Pierrick Bouvier <[email protected]>
---
target/ppc/arch_dump.c | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/target/ppc/arch_dump.c b/target/ppc/arch_dump.c
index 0b2e6542ecf..f15a7047691 100644
--- a/target/ppc/arch_dump.c
+++ b/target/ppc/arch_dump.c
@@ -253,11 +253,8 @@ static int ppc_get_dump_info(const CPUState *cs,
ArchDumpInfo *info,
return 0;
}
-const DumpCPUOps ppc_dump_ops = {
- .get_dump_info = ppc_get_dump_info,
-};
-
-ssize_t cpu_get_note_size(int class, int machine, int nr_cpus)
+static ssize_t ppc_get_note_size(const CPUState *cs, int class, int machine,
+ int nr_cpus)
{
int name_size = 8; /* "CORE" or "QEMU" rounded */
size_t elf_note_size = 0;
@@ -273,6 +270,16 @@ ssize_t cpu_get_note_size(int class, int machine, int
nr_cpus)
return (elf_note_size) * nr_cpus;
}
+const DumpCPUOps ppc_dump_ops = {
+ .get_dump_info = ppc_get_dump_info,
+ .get_note_size = ppc_get_note_size,
+};
+
+ssize_t cpu_get_note_size(int class, int machine, int nr_cpus)
+{
+ return ppc_get_note_size(first_cpu, class, machine, nr_cpus);
+}
+
static int ppc_write_all_elf_notes(const char *note_name,
WriteCoreDumpFunction f,
PowerPCCPU *cpu, int id,
--
2.43.0