target/riscv: Some CPURISCVState related cleanup and simplification
Status from this message: Applied to riscv-to-apply.next
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | target/riscv: Avoid env_archcpu() when reading RISCVCPUConfigtarget/ target/ target/ | +18 | 2 replies | |
| 2/4 | target/riscv: Simplify getting RISCVCPU pointer from envtarget/ | +4 | 3 replies | |
| 3/4 | target/riscv: Simplify type conversion for CPURISCVStatetarget/ target/ target/ +4 more | +31 | 2 replies | |
| 4/4 | target/riscv: Simplify arguments for riscv_csrrw_checktarget/ | +4 | 3 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Daniel Henrique Barboza | Alistair Francis | Philippe Mathieu-Daudé |
|---|---|---|---|
| 1/4 | R-b | R-b | |
| 2/4 | R-b | R-b | R-b |
| 3/4 | R-b | R-b | |
| 4/4 | R-b | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH 0/4] target/riscv: Some CPURISCVState related cleanup and simplification
The patchset tries to:
- Use riscv_cpu_cfg(env) instead of env_archcpu().cfg.
- Use env_archcpu() to get RISCVCPU pointer from env directly
- Use CPURISCVState as argument directly in riscv_cpu_update_mip and riscv_timer_write_timecmp to simplify type conversion
- Remove RISCVCPU argument of riscv_csrrw_check, and get cfg infomation from CPURISCVState directly
The port is available here:
https://github.com/plctlab/plct-qemu/tree/plct-cleanup-upstream
Weiwei Li (4):
target/riscv: Avoid env_archcpu() when reading RISCVCPUConfig target/riscv: Simplify getting RISCVCPU pointer from env target/riscv: Simplify type conversion for CPURISCVState target/riscv: Simplify arguments for riscv_csrrw_check
target/riscv/cpu.c | 6 +-- target/riscv/cpu.h | 3 +- target/riscv/cpu_helper.c | 17 ++++---- target/riscv/csr.c | 87 ++++++++++++-------------------------- target/riscv/gdbstub.c | 4 +- target/riscv/pmu.c | 14 +++--- target/riscv/time_helper.c | 15 +++---- target/riscv/time_helper.h | 2 +- 8 files changed, 57 insertions(+), 91 deletions(-)
Signature · 1 line
2.25.1