Re: [PATCH v4 09/11] target/riscv: Simplify counter predicate function

2022-01-10 Thread Atish Kumar Patra
On Mon, Jan 10, 2022 at 12:27 AM Bin Meng wrote: > > On Fri, Jan 7, 2022 at 10:22 AM Atish Patra wrote: > > > > 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. > > > > S

Re: [PATCH v4 09/11] target/riscv: Simplify counter predicate function

2022-01-10 Thread Bin Meng
On Fri, Jan 7, 2022 at 10:22 AM Atish Patra wrote: > > 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 diffe

[PATCH v4 09/11] target/riscv: Simplify counter predicate function

2022-01-06 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. Signed-off-by: Atish P