target-arm: Correct accessfn for CNTV_TVAL_EL0
authorEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Wed, 13 May 2015 06:52:27 +0000 (16:52 +1000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 18 May 2015 19:04:17 +0000 (20:04 +0100)
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-id: 1431499963-1019-3-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/helper.c

index b6d23106f0369e5386c77c4d025c8df1e918f3f4..21b45315be125099d4d584a083d7923dcbc13ca9 100644 (file)
@@ -1364,6 +1364,7 @@ static const ARMCPRegInfo generic_timer_cp_reginfo[] = {
     { .name = "CNTV_TVAL_EL0", .state = ARM_CP_STATE_AA64,
       .opc0 = 3, .opc1 = 3, .crn = 14, .crm = 3, .opc2 = 0,
       .type = ARM_CP_NO_RAW | ARM_CP_IO, .access = PL1_RW | PL0_R,
+      .accessfn = gt_vtimer_access,
       .readfn = gt_tval_read, .writefn = gt_tval_write,
     },
     /* The counter itself */