On 15 June 2015 at 02:03, Edgar E. Iglesias <edgar.igles...@xilinx.com> wrote: > On Fri, Jun 12, 2015 at 05:51:55PM +0100, Peter Maydell wrote: >> On 5 June 2015 at 11:33, Edgar E. Iglesias <edgar.igles...@gmail.com> wrote: >> > + { .name = "CNTHCTL_EL2", .state = ARM_CP_STATE_BOTH, >> > + .opc0 = 3, .opc1 = 4, .crn = 14, .crm = 1, .opc2 = 0, >> > + .access = PL2_RW, .resetvalue = 3, >> >> Why 3? The ARM ARM says the resetvalue is IMPDEF and might >> be UNKNOWN. > > Hi, I sohuld added a comment about this. The ARMv7 manual says that > bit 0 and 1 reset to 1. ARMv8 has these as IMPDEF so I figured > 3 would be OK in both cases. > > Does that sound OK?
Yeah, with an explanatory comment that's fine. -- PMM