Re: mtvec question
Joe Xie
Lol
Do you feel it is worth to add a bit in sstatus to restrict csrw stvec to 1) mask bit1~0; 2) fire an exception when writing non-0 value to bit1~0?
A separate elf section can work in some cases, however the concern is that it may be difficult to force everyone to follow the guidance and it is pretty annoying to debug the issue on Silicon – It is a debug nightmare if that instruction is a jmp to some random address.
From: Andrew Waterman <andrew@...>
Sent: Friday, June 19, 2020 1:31:19 PM To: Joe Xie <joxie@...> Cc: tech-privileged@... <tech-privileged@...>; James Xu (SW-GPU) <jamesx@...>; Lucien Dunning <ldunning@...> Subject: Re: [RISC-V] [tech-privileged] mtvec question
It's already used: https://github.com/riscv/riscv-fast-interrupt/blob/master/clic.adoc#44-new-xtvec-csr-mode-for-clic
On Thu, Jun 18, 2020 at 10:16 PM Joe Xie <joxie@...> wrote:
|
||
|