Re: [PATCH 3/4] target/riscv: Simplify type conversion for CPURISCVState

2023-03-13 Thread Alistair Francis
On Thu, Mar 9, 2023 at 5:14 PM Weiwei Li wrote: > > Use CPURISCVState as argument directly in riscv_cpu_update_mip and > riscv_timer_write_timecmp, since type converts from CPURISCVState to > RISCVCPU in many caller of them and then back to CPURISCVState in them. > > Signed-off-by: Weiwei Li >

Re: [PATCH 3/4] target/riscv: Simplify type conversion for CPURISCVState

2023-03-09 Thread Daniel Henrique Barboza
On 3/9/23 04:13, Weiwei Li wrote: Use CPURISCVState as argument directly in riscv_cpu_update_mip and riscv_timer_write_timecmp, since type converts from CPURISCVState to RISCVCPU in many caller of them and then back to CPURISCVState in them. Signed-off-by: Weiwei Li Signed-off-by: Junqiang

[PATCH 3/4] target/riscv: Simplify type conversion for CPURISCVState

2023-03-08 Thread Weiwei Li
Use CPURISCVState as argument directly in riscv_cpu_update_mip and riscv_timer_write_timecmp, since type converts from CPURISCVState to RISCVCPU in many caller of them and then back to CPURISCVState in them. Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang --- target/riscv/cpu.c |