|
From: | Richard Henderson |
Subject: | Re: [PATCH v2 1/2] target/arm: implement DBGCLAIM registers |
Date: | Tue, 17 Jan 2023 05:48:52 -1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
On 1/17/23 05:04, Evgeny Iakovlev wrote:
+ { .name = "DBGCLAIMCLR_EL1", .state = ARM_CP_STATE_BOTH, + .cp = 14, .opc0 = 2, .opc1 = 0, .crn = 7, .crm = 9, .opc2 = 6, + .access = PL1_RW, .accessfn = access_tda, + .writefn = dbgclaimclr_write, .raw_writefn = dbgclaimclr_raw_write, + .fieldoffset = offsetof(CPUARMState, cp15.dbgclaim) },
You didn't need a new function, just .raw_writefn = raw_write (which then uses .fieldoffset to dtrt). Otherwise, Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |