[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v1 4/7] target-arm: Implement pmccntr_sync funct
From: |
Christopher Covington |
Subject: |
Re: [Qemu-devel] [PATCH v1 4/7] target-arm: Implement pmccntr_sync function |
Date: |
Tue, 24 Jun 2014 11:35:16 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 |
On 06/23/2014 09:12 PM, Alistair Francis wrote:
> This is used to synchronise the PMCCNTR counter and swap its
> state between enabled and disabled if required. It must always
> be called twice, both before and after any logic that could
> change the state of the PMCCNTR counter.
> diff --git a/target-arm/cpu.h b/target-arm/cpu.h
> index 31aa09c..0984eda 100644
> --- a/target-arm/cpu.h
> +++ b/target-arm/cpu.h
> @@ -1051,6 +1051,17 @@ static inline bool cp_access_ok(int current_pl,
> }
>
> /**
> + * pmccntr_sync
> + * @cpu: ARMCPU
> + *
> + * Syncronises the counter in the PMCCNTR. This must always be called twice,
> + * once before any action that might effect the timer and again afterwards.
> + * The fucntion is used to swap the state of the register if required.
Nit: function
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by the Linux Foundation.
- [Qemu-devel] [PATCH v1 0/7] target-arm: Extend PMCCNTR for ARMv8, Alistair Francis, 2014/06/23
- [Qemu-devel] [PATCH v1 1/7] target-arm: Make the ARM PMCCNTR register 64-bit, Alistair Francis, 2014/06/23
- [Qemu-devel] [PATCH v1 2/7] target-arm: Implement PMCCNTR_EL0 and related registers, Alistair Francis, 2014/06/23
- [Qemu-devel] [PATCH v1 3/7] target-arm: Add helper macros and defines for CCNT register, Alistair Francis, 2014/06/23
- [Qemu-devel] [PATCH v1 4/7] target-arm: Implement pmccntr_sync function, Alistair Francis, 2014/06/23
- Re: [Qemu-devel] [PATCH v1 4/7] target-arm: Implement pmccntr_sync function,
Christopher Covington <=
- [Qemu-devel] [PATCH v1 5/7] target-arm: Remove old code and replace with new functions, Alistair Francis, 2014/06/23
- [Qemu-devel] [PATCH v1 6/7] target-arm: Implement pmccfiltr_write function, Alistair Francis, 2014/06/23
- [Qemu-devel] [PATCH v1 7/7] target-arm: Call the pmccntr_sync function when swapping ELs, Alistair Francis, 2014/06/23
- Re: [Qemu-devel] [PATCH v1 7/7] target-arm: Call the pmccntr_sync function when swapping ELs, Peter Crosthwaite, 2014/06/26