[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH target-arm v4 7/7] target-arm: Implement pmccfiltr_w
From: |
Peter Crosthwaite |
Subject: |
[Qemu-devel] [PATCH target-arm v4 7/7] target-arm: Implement pmccfiltr_write function |
Date: |
Mon, 25 Aug 2014 21:13:12 -0700 |
From: Alistair Francis <address@hidden>
This is the function that is called when writing to the
PMCCFILTR_EL0 register
Signed-off-by: Alistair Francis <address@hidden>
Signed-off-by: Peter Crosthwaite <address@hidden>
---
target-arm/helper.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/target-arm/helper.c b/target-arm/helper.c
index d213ed1..2b95f33 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -650,6 +650,14 @@ void pmccntr_sync(CPUARMState *env)
#endif
+static void pmccfiltr_write(CPUARMState *env, const ARMCPRegInfo *ri,
+ uint64_t value)
+{
+ pmccntr_sync(env);
+ env->cp15.pmccfiltr_el0 = value & 0x7E000000;
+ pmccntr_sync(env);
+}
+
static void pmcntenset_write(CPUARMState *env, const ARMCPRegInfo *ri,
uint64_t value)
{
@@ -801,6 +809,7 @@ static const ARMCPRegInfo v7_cp_reginfo[] = {
#endif
{ .name = "PMCCFILTR_EL0", .state = ARM_CP_STATE_AA64,
.opc0 = 3, .opc1 = 3, .crn = 14, .crm = 15, .opc2 = 7,
+ .writefn = pmccfiltr_write,
.access = PL0_RW, .accessfn = pmreg_access,
.type = ARM_CP_IO,
.fieldoffset = offsetof(CPUARMState, cp15.pmccfiltr_el0),
--
2.1.0.1.g27b9230
- [Qemu-devel] [PATCH target-arm v4 0/7] target-arm: Extend PMCCNTR for ARMv8, Peter Crosthwaite, 2014/08/26
- [Qemu-devel] [PATCH target-arm v4 1/7] target-arm: Make the ARM PMCCNTR register 64-bit, Peter Crosthwaite, 2014/08/26
- [Qemu-devel] [PATCH target-arm v4 2/7] arm: Implement PMCCNTR 32b read-modify-write, Peter Crosthwaite, 2014/08/26
- [Qemu-devel] [PATCH target-arm v4 3/7] target-arm: Implement PMCCNTR_EL0 and related registers, Peter Crosthwaite, 2014/08/26
- [Qemu-devel] [PATCH target-arm v4 4/7] target-arm: Add arm_ccnt_enabled function, Peter Crosthwaite, 2014/08/26
- [Qemu-devel] [PATCH target-arm v4 5/7] target-arm: Implement pmccntr_sync function, Peter Crosthwaite, 2014/08/26
- [Qemu-devel] [PATCH target-arm v4 6/7] target-arm: Remove old code and replace with new functions, Peter Crosthwaite, 2014/08/26
- [Qemu-devel] [PATCH target-arm v4 7/7] target-arm: Implement pmccfiltr_write function,
Peter Crosthwaite <=
- Re: [Qemu-devel] [PATCH target-arm v4 0/7] target-arm: Extend PMCCNTR for ARMv8, Peter Maydell, 2014/08/29