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

2022-05-26 Thread Atish Patra
On Wed, May 25, 2022 at 3:24 AM Frank Chang wrote: > > On Tue, May 24, 2022 at 8:02 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. >> >> Simpl

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

2022-05-25 Thread Frank Chang
On Tue, May 24, 2022 at 8:02 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 differ