Re: [PATCH 27/35] target/arm: Report VNCR_EL2 based faults correctly

2024-01-16 Thread Peter Maydell
On Tue, 16 Jan 2024 at 15:29, Jonathan Cameron wrote: > > On Tue, 16 Jan 2024 14:59:15 + > Peter Maydell wrote: > > > On Tue, 16 Jan 2024 at 14:50, Jonathan Cameron > > wrote: > > > > > > On Tue, 16 Jan 2024 13:20:33 + > > > Peter Maydell wrote: > > > > Bisecting to this patch is a bit

Re: [PATCH 27/35] target/arm: Report VNCR_EL2 based faults correctly

2024-01-16 Thread Jonathan Cameron via
On Tue, 16 Jan 2024 14:59:15 + Peter Maydell wrote: > On Tue, 16 Jan 2024 at 14:50, Jonathan Cameron > wrote: > > > > On Tue, 16 Jan 2024 13:20:33 + > > Peter Maydell wrote: > > > Bisecting to this patch is a bit weird because at this point > > > in the series emulation of FEAT_NV2 sh

Re: [PATCH 27/35] target/arm: Report VNCR_EL2 based faults correctly

2024-01-16 Thread Peter Maydell
On Tue, 16 Jan 2024 at 14:50, Jonathan Cameron wrote: > > On Tue, 16 Jan 2024 13:20:33 + > Peter Maydell wrote: > > Bisecting to this patch is a bit weird because at this point > > in the series emulation of FEAT_NV2 should be disabled and > > the code being added should never be used. You co

Re: [PATCH 27/35] target/arm: Report VNCR_EL2 based faults correctly

2024-01-16 Thread Jonathan Cameron via
On Tue, 16 Jan 2024 13:20:33 + Peter Maydell wrote: > On Tue, 16 Jan 2024 at 13:09, Jonathan Cameron > wrote: > > > > On Mon, 18 Dec 2023 11:32:57 + > > Peter Maydell wrote: > > > > > If FEAT_NV2 redirects a system register access to a memory offset > > > from VNCR_EL2, that access mi

Re: [PATCH 27/35] target/arm: Report VNCR_EL2 based faults correctly

2024-01-16 Thread Peter Maydell
On Tue, 16 Jan 2024 at 13:09, Jonathan Cameron wrote: > > On Mon, 18 Dec 2023 11:32:57 + > Peter Maydell wrote: > > > If FEAT_NV2 redirects a system register access to a memory offset > > from VNCR_EL2, that access might fault. In this case we need to > > report the correct syndrome informat

Re: [PATCH 27/35] target/arm: Report VNCR_EL2 based faults correctly

2024-01-16 Thread Jonathan Cameron via
On Mon, 18 Dec 2023 11:32:57 + Peter Maydell wrote: > If FEAT_NV2 redirects a system register access to a memory offset > from VNCR_EL2, that access might fault. In this case we need to > report the correct syndrome information: > * Data Abort, from same-EL > * no ISS information > * the

Re: [PATCH 27/35] target/arm: Report VNCR_EL2 based faults correctly

2023-12-27 Thread Richard Henderson
On 12/18/23 22:32, Peter Maydell wrote: If FEAT_NV2 redirects a system register access to a memory offset from VNCR_EL2, that access might fault. In this case we need to report the correct syndrome information: * Data Abort, from same-EL * no ISS information * the VNCR bit (bit 13) is set

[PATCH 27/35] target/arm: Report VNCR_EL2 based faults correctly

2023-12-18 Thread Peter Maydell
If FEAT_NV2 redirects a system register access to a memory offset from VNCR_EL2, that access might fault. In this case we need to report the correct syndrome information: * Data Abort, from same-EL * no ISS information * the VNCR bit (bit 13) is set and the exception must be taken to EL2. Sav