Re: [PATCH] riscv: Fix Stage2 SV32 page table walk

2020-04-20 Thread Alistair Francis
On Mon, Mar 30, 2020 at 9:25 AM Alistair Francis wrote: > > On Mon, Mar 30, 2020 at 1:28 AM Anup Patel wrote: > > > > As-per RISC-V H-Extension v0.5 draft, the Stage2 SV32 page table has > > 12bits of VPN[1] and 10bits of VPN[0]. The additional 2bits in VPN[1] > > is required to handle the 34bit

Re: [PATCH] riscv: Fix Stage2 SV32 page table walk

2020-03-30 Thread Alistair Francis
On Mon, Mar 30, 2020 at 1:28 AM Anup Patel wrote: > > As-per RISC-V H-Extension v0.5 draft, the Stage2 SV32 page table has > 12bits of VPN[1] and 10bits of VPN[0]. The additional 2bits in VPN[1] > is required to handle the 34bit intermediate physical address coming > from Stage1 SV32 page table.

[PATCH] riscv: Fix Stage2 SV32 page table walk

2020-03-30 Thread Anup Patel
As-per RISC-V H-Extension v0.5 draft, the Stage2 SV32 page table has 12bits of VPN[1] and 10bits of VPN[0]. The additional 2bits in VPN[1] is required to handle the 34bit intermediate physical address coming from Stage1 SV32 page table. The 12bits of VPN[1] implies that Stage2 SV32 level-0 page