[v1 3/4] RISC-V: Hypervisor Ext: Add tests
Vineet Gupta
vineetg@rivosinc.com
Tue Jan 4 18:46:12 GMT 2022
On 1/4/22 12:12 AM, Jan Beulich wrote:
>> + csrr a0, hgeip
>> + csrw hgeip, a1
> I this actually a good thing to test? Aiui this csr is r/o; I'd expect
> the assembler to at least warn about write attempts ...
The assembler does warn when testsuite is run (-mcsr-check). This exact
code snippet was changed by Nelson as part of csr test consolidation,
but test still tries to write to it (and so do a whole bunch of other
R/O csrs) - I'm not sure if this is intended (to show that assembler
does warn if user were to do this) or if needs to be fixed in the tests.
More information about the Binutils
mailing list