[PATCH v2 0/3] target/loongarch: Move TCG specified functions to tcg_cpu.c

Bibo Mao posted 3 patches 1 month, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20250929035338.2320419-1-maobibo@loongson.cn
Maintainers: Song Gao <gaosong@loongson.cn>
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
[PATCH v2 0/3] target/loongarch: Move TCG specified functions to tcg_cpu.c
Posted by Bibo Mao 1 month, 2 weeks ago
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
-- 
2.39.3
Re: [PATCH v2 0/3] target/loongarch: Move TCG specified functions to tcg_cpu.c
Posted by gaosong 1 month ago
在 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