Re: [PATCH] target/arm: honor HCR_E2H for AT S1E2R and AT S1E2W address translation

2022-10-25 Thread ake
On Tue, 25 Oct 2022 13:25:22 +0100 Peter Maydell wrote: > On Mon, 17 Oct 2022 at 10:30, Ake Koomsin wrote: > > > > When HCR_E2H is set, AT S1E2R and AT S1E2W should translate an > > address based on both TTBR0_EL2 and TTBR1_EL2. > > > > Signed-off-by: Ake Koomsin > > --- > > target/arm/helper.

Re: [PATCH] target/arm: honor HCR_E2H for AT S1E2R and AT S1E2W address translation

2022-10-25 Thread Richard Henderson
On 10/25/22 22:25, Peter Maydell wrote: In the pseudocode, E2H is handled by changing the behaviour not just of the S1E2 ops, but also of the S1E1 ops. If E2H is set: * the S1E2 ops use the EL2&0 regime, but continue to ignore PSTATE.PAN * the S1E1 ops also use the EL2&0 regime, with the

Re: [PATCH] target/arm: honor HCR_E2H for AT S1E2R and AT S1E2W address translation

2022-10-25 Thread Peter Maydell
On Mon, 17 Oct 2022 at 10:30, Ake Koomsin wrote: > > When HCR_E2H is set, AT S1E2R and AT S1E2W should translate an address > based on both TTBR0_EL2 and TTBR1_EL2. > > Signed-off-by: Ake Koomsin > --- > target/arm/helper.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff -

[PATCH] target/arm: honor HCR_E2H for AT S1E2R and AT S1E2W address translation

2022-10-17 Thread Ake Koomsin
When HCR_E2H is set, AT S1E2R and AT S1E2W should translate an address based on both TTBR0_EL2 and TTBR1_EL2. Signed-off-by: Ake Koomsin --- target/arm/helper.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/target/arm/helper.c b/target/arm/helper.c index dde64a487a..1