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