For now, we keep the global cpu_get_note_size symbol defined.

Signed-off-by: Pierrick Bouvier <[email protected]>
---
 target/loongarch/arch_dump.c | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/target/loongarch/arch_dump.c b/target/loongarch/arch_dump.c
index 6bd83b4be61..512f2d9f63b 100644
--- a/target/loongarch/arch_dump.c
+++ b/target/loongarch/arch_dump.c
@@ -153,11 +153,8 @@ static int loongarch_get_dump_info(const CPUState *cs, 
ArchDumpInfo *info,
     return 0;
 }
 
-const DumpCPUOps loongarch_dump_ops = {
-    .get_dump_info = loongarch_get_dump_info,
-};
-
-ssize_t cpu_get_note_size(int class, int machine, int nr_cpus)
+static ssize_t loongarch_get_note_size(const CPUState *cs, int class,
+                                       int machine, int nr_cpus)
 {
     size_t note_size = 0;
 
@@ -167,3 +164,13 @@ ssize_t cpu_get_note_size(int class, int machine, int 
nr_cpus)
 
     return note_size * nr_cpus;
 }
+
+const DumpCPUOps loongarch_dump_ops = {
+    .get_dump_info = loongarch_get_dump_info,
+    .get_note_size = loongarch_get_note_size,
+};
+
+ssize_t cpu_get_note_size(int class, int machine, int nr_cpus)
+{
+    return loongarch_get_note_size(first_cpu, class, machine, nr_cpus);
+}
-- 
2.43.0


Reply via email to