Re: [PATCH for 5.0 v1 2/2] riscv: AND stage-1 and stage-2 protection flags

2020-03-26 Thread Alistair Francis
On Thu, Mar 26, 2020 at 4:32 PM Richard Henderson wrote: > > On 3/26/20 3:44 PM, Alistair Francis wrote: > > Take the result of stage-1 and stage-2 page table walks and AND the two > > protection flags together. This way we require both to set permissions > > instead of just stage-2. > > > >

Re: [PATCH for 5.0 v1 2/2] riscv: AND stage-1 and stage-2 protection flags

2020-03-26 Thread Richard Henderson
On 3/26/20 3:44 PM, Alistair Francis wrote: > Take the result of stage-1 and stage-2 page table walks and AND the two > protection flags together. This way we require both to set permissions > instead of just stage-2. > > Signed-off-by: Alistair Francis > --- > target/riscv/cpu_helper.c | 8

[PATCH for 5.0 v1 2/2] riscv: AND stage-1 and stage-2 protection flags

2020-03-26 Thread Alistair Francis
Take the result of stage-1 and stage-2 page table walks and AND the two protection flags together. This way we require both to set permissions instead of just stage-2. Signed-off-by: Alistair Francis --- target/riscv/cpu_helper.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-)