target/loongarch: Declare loongarch_cpu_dump_state() locally
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 15 Nov 2024 10:24:56 +0000 (11:24 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 20 Dec 2024 16:44:57 +0000 (17:44 +0100)
loongarch_cpu_dump_state() is not used outside of cpu.c,
no need to expose its prototype.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20241115152053.66442-3-philmd@linaro.org>

target/loongarch/cpu.c
target/loongarch/internals.h

index 078766feafcfbd0c3704f081ca735f14ff54a0b2..fa838dce2e433546ff154002db7af8a54603f511 100644 (file)
@@ -742,7 +742,7 @@ static ObjectClass *loongarch_cpu_class_by_name(const char *cpu_model)
     return oc;
 }
 
-void loongarch_cpu_dump_state(CPUState *cs, FILE *f, int flags)
+static void loongarch_cpu_dump_state(CPUState *cs, FILE *f, int flags)
 {
     CPULoongArchState *env = cpu_env(cs);
     int i;
index 1a02427627d8e968a1b829bdb7915a212860856e..0655ac948b1ddcb81d08a80b4357b3d2f012430c 100644 (file)
@@ -18,8 +18,6 @@
 
 void loongarch_translate_init(void);
 
-void loongarch_cpu_dump_state(CPUState *cpu, FILE *f, int flags);
-
 void G_NORETURN do_raise_exception(CPULoongArchState *env,
                                    uint32_t exception,
                                    uintptr_t pc);