Re: [PATCH] target/riscv: Support SW update of PTE A/D bits and Ssptwad extension

2022-07-25 Thread Jim Shu
Hi Alistair, Why do we want to support that? We can do either and we are > implementing the much more usual scheme. I don't see a reason to > bother implementing the other one. Is anyone ever going to use it? > Thanks for your response. I got it. Regards, Jim Shu

Re: [PATCH] target/riscv: Support SW update of PTE A/D bits and Ssptwad extension

2022-07-19 Thread Alistair Francis
On Wed, Jul 20, 2022 at 1:52 PM Anup Patel wrote: > > On Wed, Jul 20, 2022 at 5:02 AM Jim Shu wrote: > > > > Hi Anup, > > > > Do you think it is OK if we only use ssptwad as a CPU option name > > but not a RISC-V extension? just like MMU and PMP options of RISC-V. > > (And we could change it to

Re: [PATCH] target/riscv: Support SW update of PTE A/D bits and Ssptwad extension

2022-07-19 Thread Anup Patel
On Wed, Jul 20, 2022 at 5:02 AM Jim Shu wrote: > > Hi Anup, > > Do you think it is OK if we only use ssptwad as a CPU option name > but not a RISC-V extension? just like MMU and PMP options of RISC-V. > (And we could change it to RISC-V extension in the future > if Ssptwad becomes the formal

Re: [PATCH] target/riscv: Support SW update of PTE A/D bits and Ssptwad extension

2022-07-19 Thread Jim Shu
Hi Anup, Do you think it is OK if we only use ssptwad as a CPU option name but not a RISC-V extension? just like MMU and PMP options of RISC-V. (And we could change it to RISC-V extension in the future if Ssptwad becomes the formal RISC-V extension) Both HW/SW update schemes are already defined

Re: [PATCH] target/riscv: Support SW update of PTE A/D bits and Ssptwad extension

2022-07-17 Thread Anup Patel
+Atish On Mon, Jul 18, 2022 at 9:23 AM Jim Shu wrote: > > RISC-V priv spec v1.12 permits 2 PTE-update schemes of A/D-bit > (Access/Dirty bit): HW update or SW update. RISC-V profile defines the > extension name 'Ssptwad' for HW update to PTE A/D bits. >

[PATCH] target/riscv: Support SW update of PTE A/D bits and Ssptwad extension

2022-07-17 Thread Jim Shu
RISC-V priv spec v1.12 permits 2 PTE-update schemes of A/D-bit (Access/Dirty bit): HW update or SW update. RISC-V profile defines the extension name 'Ssptwad' for HW update to PTE A/D bits. https://github.com/riscv/riscv-profiles/blob/main/profiles.adoc Current QEMU RISC-V implements HW update