Re: [PATCH v10 09/12] target/riscv: Simplify counter predicate function

2022-07-14 Thread Heiko Stübner
Am Dienstag, 21. Juni 2022, 01:15:59 CEST schrieb Atish Patra: > All the hpmcounters and the fixed counters (CY, IR, TM) can be represented > as a unified counter. Thus, the predicate function doesn't need handle each > case separately. > > Simplify the predicate function so that we just handle

Re: [PATCH v10 09/12] target/riscv: Simplify counter predicate function

2022-07-05 Thread Weiwei Li
在 2022/7/5 下午4:00, Atish Kumar Patra 写道: On Mon, Jul 4, 2022 at 8:19 AM Weiwei Li wrote: 在 2022/6/21 上午7:15, Atish Patra 写道: All the hpmcounters and the fixed counters (CY, IR, TM) can be represented as a unified counter. Thus, the predicate function doesn't need handle each case

Re: [PATCH v10 09/12] target/riscv: Simplify counter predicate function

2022-07-05 Thread Atish Kumar Patra
On Mon, Jul 4, 2022 at 8:19 AM Weiwei Li wrote: > > > 在 2022/6/21 上午7:15, Atish Patra 写道: > > All the hpmcounters and the fixed counters (CY, IR, TM) can be represented > as a unified counter. Thus, the predicate function doesn't need handle each > case separately. > > Simplify the predicate

Re: [PATCH v10 09/12] target/riscv: Simplify counter predicate function

2022-07-04 Thread Weiwei Li
在 2022/6/21 上午7:15, Atish Patra 写道: All the hpmcounters and the fixed counters (CY, IR, TM) can be represented as a unified counter. Thus, the predicate function doesn't need handle each case separately. Simplify the predicate function so that we just handle things differently between

[PATCH v10 09/12] target/riscv: Simplify counter predicate function

2022-06-20 Thread Atish Patra
All the hpmcounters and the fixed counters (CY, IR, TM) can be represented as a unified counter. Thus, the predicate function doesn't need handle each case separately. Simplify the predicate function so that we just handle things differently between RV32/RV64 and S/HS mode. Reviewed-by: Bin Meng