[PATCH v2 0/3] target/loongarch: Add CPUTimerState structure

Bibo Mao posted 3 patches 2 weeks, 2 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260910074613.3486127-1-maobibo@loongson.cn
Maintainers: Song Gao <17746591750@163.com>, Bibo Mao <maobibo@loongson.cn>, Xianglai Li <lixianglai@loongson.cn>
target/loongarch/cpu.c                        | 12 ++++++--
target/loongarch/cpu.h                        | 15 +++++++++-
target/loongarch/internals.h                  |  9 +++---
target/loongarch/tcg/csr_helper.c             | 14 ++++-----
target/loongarch/tcg/meson.build              |  2 +-
target/loongarch/tcg/op_helper.c              |  6 ++--
.../tcg/{constant_timer.c => timer.c}         | 30 ++++++++-----------
7 files changed, 51 insertions(+), 37 deletions(-)
rename target/loongarch/tcg/{constant_timer.c => timer.c} (65%)
[PATCH v2 0/3] target/loongarch: Add CPUTimerState structure
Posted by Bibo Mao 2 weeks, 2 days ago
This patch set rename function name and filename constant_timer_xxx
with timer_xxx, also timer object structure CPUTimerState is added,
so that multiple timer objects can be easily added.
---
v1 ... v2:
  1. Move CPUTimerState from CPULoongArchState to CPUSysState.
  2. Remove element sys_state in structure CPUTimerState.
  3. Add modification with helper_csrwr_ticlr(), where IRQ_TIMER is
     replaced with timer::irq.
---
Bibo Mao (3):
  target/loongarch: Rename function name constant_timer with timer
  target/loongarch: Rename filename constant_timer.c with timer.c
  target/loongarch: Add CPUTimerState structure

 target/loongarch/cpu.c                        | 12 ++++++--
 target/loongarch/cpu.h                        | 15 +++++++++-
 target/loongarch/internals.h                  |  9 +++---
 target/loongarch/tcg/csr_helper.c             | 14 ++++-----
 target/loongarch/tcg/meson.build              |  2 +-
 target/loongarch/tcg/op_helper.c              |  6 ++--
 .../tcg/{constant_timer.c => timer.c}         | 30 ++++++++-----------
 7 files changed, 51 insertions(+), 37 deletions(-)
 rename target/loongarch/tcg/{constant_timer.c => timer.c} (65%)


base-commit: 1df256f5968e9f7c3c4533a1383b071c044a36d6
-- 
2.54.0