Re: [Qemu-devel] [PATCH v7 02/12] target/arm: Reorganize PMCCNTR accesses

2018-11-16 Thread Aaron Lindsay
On Nov 16 14:50, Peter Maydell wrote: > On 5 November 2018 at 18:51, Aaron Lindsay > wrote: > > pmccntr_read and pmccntr_write contained duplicate code that was already > > being handled by pmccntr_sync. Consolidate the duplicated code into two > > functions: pmccntr_op_start and pmccntr_op_finis

Re: [Qemu-devel] [PATCH v7 02/12] target/arm: Reorganize PMCCNTR accesses

2018-11-16 Thread Peter Maydell
On 5 November 2018 at 18:51, Aaron Lindsay wrote: > pmccntr_read and pmccntr_write contained duplicate code that was already > being handled by pmccntr_sync. Consolidate the duplicated code into two > functions: pmccntr_op_start and pmccntr_op_finish. Add a companion to > c15_ccnt in CPUARMState s

[Qemu-devel] [PATCH v7 02/12] target/arm: Reorganize PMCCNTR accesses

2018-11-05 Thread Aaron Lindsay
pmccntr_read and pmccntr_write contained duplicate code that was already being handled by pmccntr_sync. Consolidate the duplicated code into two functions: pmccntr_op_start and pmccntr_op_finish. Add a companion to c15_ccnt in CPUARMState so that we can simultaneously save both the architectural re