For now, we keep the global cpu_get_note_size symbol defined.
Signed-off-by: Pierrick Bouvier <[email protected]>
---
target/s390x/arch_dump.c | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/target/s390x/arch_dump.c b/target/s390x/arch_dump.c
index 716c9606d26..c18483a6754 100644
--- a/target/s390x/arch_dump.c
+++ b/target/s390x/arch_dump.c
@@ -470,11 +470,8 @@ static int s390_get_dump_info(const CPUState *cs,
ArchDumpInfo *info,
return 0;
}
-const DumpCPUOps s390_dump_ops = {
- .get_dump_info = s390_get_dump_info,
-};
-
-ssize_t cpu_get_note_size(int class, int machine, int nr_cpus)
+static ssize_t s390_get_note_size(const CPUState *cs, int class, int machine,
+ int nr_cpus)
{
int name_size = 8; /* "LINUX" or "CORE" + pad */
size_t elf_note_size = 0;
@@ -500,3 +497,13 @@ ssize_t cpu_get_note_size(int class, int machine, int
nr_cpus)
return (elf_note_size) * nr_cpus;
}
+
+const DumpCPUOps s390_dump_ops = {
+ .get_dump_info = s390_get_dump_info,
+ .get_note_size = s390_get_note_size,
+};
+
+ssize_t cpu_get_note_size(int class, int machine, int nr_cpus)
+{
+ return s390_get_note_size(first_cpu, class, machine, nr_cpus);
+}
--
2.43.0