Date
1 - 2 of 2
Svinval fence instructions traps from VU mode
John Ingalls
What should the behavior of the SFENCE.W.INVAL and SFENCE.INVAL.IR instructions be when executed in VU mode? The spec clearly spells out the behavior of the other S/H Fence/Inval instructions in VU mode, and omits these from that list. I see three options:
Thanks, -- John (Asking the Privileged mailing list since the tech-virt-mem group is archived.) |
|
Andrew Waterman
Upon re-reading the relevant section in the hypervisor spec, I believe it is already specified that these should raise virtual-instruction exceptions when executed in VU-mode, hinging on the notion that these are "supervisor instructions": https://github.com/riscv/riscv-isa-manual/blob/5234c630d9eaa13e9654c3a91ef916319950f012/src/hypervisor.tex#L2948-L2950 (And, as you wrote, they should raise illegal-instruction exceptions in U-mode for the same reason: that they are supervisor instructions.) On Sun, Dec 4, 2022 at 4:53 PM John Ingalls <john.ingalls@...> wrote:
|
|