|
From: | Richard Henderson |
Subject: | Re: [PATCH] target/arm: Fix Rt/Rt2 in ESR_ELx for copro traps from AArch32 to 64 |
Date: | Tue, 4 Aug 2020 13:38:24 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 8/3/20 9:54 AM, Peter Maydell wrote: > + case 14: > + switch (mode) { > + case ARM_CPU_MODE_USR: > + case ARM_CPU_MODE_SYS: > + return 14; > + case ARM_CPU_MODE_HYP: > + return 16; Hyp uses LR_usr... > + case ARM_CPU_MODE_IRQ: > + return 18; > + case ARM_CPU_MODE_SVC: > + return 20; > + case ARM_CPU_MODE_ABT: > + return 22; > + case ARM_CPU_MODE_UND: > + return 24; ... making all of these off-by-2. > + case ARM_CPU_MODE_FIQ: > + return 30; > + default: > + g_assert_not_reached(); > + } > + case 15: > + return 31; I don't see that R15 is mapped at all. Is this really reachable? Otherwise it looks ok. r~
[Prev in Thread] | Current Thread | [Next in Thread] |