|
From: | Richard Henderson |
Subject: | Re: [PATCH 21/71] target/arm: Implement TPIDR2_EL0 |
Date: | Mon, 6 Jun 2022 07:38:25 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 |
On 6/6/22 06:18, Peter Maydell wrote:
+ if (!(sctlr & SCTLR_EnTP2)) { + uint64_t hcr = arm_hcr_el2_eff(env); + return hcr & HCR_TGE ? CP_ACCESS_TRAP_EL2 : CP_ACCESS_TRAP;Do we really need to do this rather than just returning CP_ACCESS_TRAP and letting the "take trap to EL2 if TGE enabled" check in raise_exception() do the TGE routing?
No, you're right. r~
[Prev in Thread] | Current Thread | [Next in Thread] |