[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 14/18] target/arm: secure stage 2 translation regime
From: |
Rémi Denis-Courmont |
Subject: |
Re: [PATCH 14/18] target/arm: secure stage 2 translation regime |
Date: |
Tue, 12 Jan 2021 09:27:54 +0200 |
Le tiistaina 12. tammikuuta 2021, 2.19.55 EET Richard Henderson a écrit :
> On 12/18/20 12:37 AM, remi.denis.courmont@huawei.com wrote:
> > @@ -11286,8 +11299,10 @@ static bool get_phys_addr_lpae(CPUARMState *env,
> > uint64_t address,>
> > ap = extract32(attrs, 4, 2);
> >
> > - if (mmu_idx == ARMMMUIdx_Stage2) {
> > - ns = true;
> > + if (mmu_idx == ARMMMUIdx_Stage2 || mmu_idx == ARMMMUIdx_Stage2_S) {
> > + if (mmu_idx == ARMMMUIdx_Stage2) {
> > + ns = true;
> > + }
> >
> > xn = extract32(attrs, 11, 2);
>
> Does this want an unconditional
>
> ns = mmu_idx == ARMMMUIdx_Stage2;
>
> When can ns be true and mmu_idx == ARMMMUIdx_Stage2_S?
Actually there's a bug. ns is not set at all in secure state 2.
--
Rémi Denis-Courmont