]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/loongarch: Define loongarch_exception_name() as static
authorBibo Mao <maobibo@loongson.cn>
Mon, 29 Sep 2025 03:53:38 +0000 (11:53 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 9 Oct 2025 11:11:37 +0000 (19:11 +0800)
Function loongarch_exception_name() is only called in defined file
target/loongarch/tcg/tcg_cpu.c, set this function as static.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250929035338.2320419-4-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
target/loongarch/internals.h
target/loongarch/tcg/tcg_cpu.c

index e994f5a3d361f3cec5b933578f1a8872f152fd2d..8793bd9df65a699a1f11c11299e037b862af501b 100644 (file)
@@ -24,8 +24,6 @@ void G_NORETURN do_raise_exception(CPULoongArchState *env,
                                    uint32_t exception,
                                    uintptr_t pc);
 
-const char *loongarch_exception_name(int32_t exception);
-
 #ifdef CONFIG_TCG
 int ieee_ex_to_loongarch(int xcpt);
 void restore_fp_status(CPULoongArchState *env);
index 59b5800ecfeadb6eed70a943a5d8a043ec8b8f6c..82b54e6dc3cc3154b45722369bd39aa45ad9a36c 100644 (file)
@@ -45,7 +45,7 @@ static const struct TypeExcp excp_names[] = {
     {EXCP_HLT, "EXCP_HLT"},
 };
 
-const char *loongarch_exception_name(int32_t exception)
+static const char *loongarch_exception_name(int32_t exception)
 {
     int i;