Re: [PATCH 05/19] target/ppc/pmu_book3s_helper.c: eliminate code repetition

2021-08-09 Thread David Gibson
On Mon, Aug 09, 2021 at 10:10:43AM -0300, Daniel Henrique Barboza wrote: > We don't need a base_icount value in CPUPPCState for each PMC. All the > calculation done after freeze will use the same base start value. Use a > single 'pmu_base_icount' attribute that can be use to all PMCs. > >

[PATCH 05/19] target/ppc/pmu_book3s_helper.c: eliminate code repetition

2021-08-09 Thread Daniel Henrique Barboza
We don't need a base_icount value in CPUPPCState for each PMC. All the calculation done after freeze will use the same base start value. Use a single 'pmu_base_icount' attribute that can be use to all PMCs. Likewise, the freeze count operations are going to be done for all available PMCs, so