target/loongarch: Define loongarch_exception_name() as static
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>
This commit is contained in:
parent
29332340e1
commit
fa6af7f6bf
2 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue