在 2025/9/29 上午11:53, Bibo Mao 写道:
> Some functions defined in file target/loongarch/cpu.c are TCG specified,
> new file target/loongarch/tcg/tcg_cpu.c is created here and move TCG
> specified functions to new file.
>
> ---
> v1 ... v2:
> 1. Merge old patch 1 and patch 3 into new patch 1
> 2. Move function declaration from header file target/loongarch/cpu.h
> to file target/loongarch/internals.h
> ---
> Bibo Mao (3):
> target/loongarch: Move TCG specified functions to tcg_cpu.c
> target/loongarch: Move function do_raise_exception() to tcg_cpu.c
> target/loongarch: Define loongarch_exception_name() as static
>
> target/loongarch/cpu.c | 318 +-------------------------
> target/loongarch/internals.h | 4 +-
> target/loongarch/tcg/meson.build | 1 +
> target/loongarch/tcg/tcg_cpu.c | 322 +++++++++++++++++++++++++++
> target/loongarch/tcg/tcg_loongarch.h | 1 +
> 5 files changed, 328 insertions(+), 318 deletions(-)
> create mode 100644 target/loongarch/tcg/tcg_cpu.c
>
>
> base-commit: 4975b64efb5aa4248cbc3760312bbe08d6e71638
Applied to loongarch-next
Thanks.
Song Gao