Re: [PATCH] target/riscv: Bugfix reserved bits in PTE for RV64

2019-09-24 Thread Guo Ren
Ok, In fact it's wrong patch, don't try it. pte is destroyed. Sorry for that, I'll send V2. On Tue, Sep 24, 2019 at 1:03 PM Alistair Francis wrote: > > On Mon, Sep 23, 2019 at 10:01 PM wrote: > > > > From: Guo Ren > > > > Highest 10 bits of PTE are reserved in riscv-privileged, ref: [1], so we

Re: [PATCH] target/riscv: Bugfix reserved bits in PTE for RV64

2019-09-23 Thread Alistair Francis
On Mon, Sep 23, 2019 at 10:01 PM wrote: > > From: Guo Ren > > Highest 10 bits of PTE are reserved in riscv-privileged, ref: [1], so we > need to ignore them. They can not be a part of ppn. > > 1: The RISC-V Instruction Set Manual, Volume II: Privileged Architecture >4.4 Sv39: Page-Based 39-bi

[PATCH] target/riscv: Bugfix reserved bits in PTE for RV64

2019-09-23 Thread guoren
From: Guo Ren Highest 10 bits of PTE are reserved in riscv-privileged, ref: [1], so we need to ignore them. They can not be a part of ppn. 1: The RISC-V Instruction Set Manual, Volume II: Privileged Architecture 4.4 Sv39: Page-Based 39-bit Virtual-Memory System 4.5 Sv48: Page-Based 48-bit