<la_mettrie>
tried to execute a program with CSRR instruction (which reads system state registers) from user space (QEMU, debian image) and that turned out to be an illegal instruction.
<sorear>
that's generally expected, what is the question?
<la_mettrie>
well, uhm, maybe... which document i should have studied in order to learn it through the non-hard way
<sorear>
privlieged spec, §2.1 (in the 2019 copy I have here), Attempts to access a CSR without appropriate privilege level or to write a read-only register also raise illegal instruction exceptions.
<muurkha>
also in chapter 9 of the base spec (20191213) it explains that CSRR has been moved out of the base spec into the Zicsr extension
<sorear>
csrr is fine in user mode for user-accessible CSRs like fflags
<muurkha>
so you'd think that even if it isn't a privilege-level thing, you'd get an illegal instruction if the processor doesn't have Zicsr
<muurkha>
?
<sorear>
I think you're complicating this by bringing up irrelevant things. Last I checked qemu always had zicsr
<muurkha>
ah sorry
mahmutov has joined #riscv
sobkas has quit [Remote host closed the connection]
cwebber has quit [Remote host closed the connection]
sobkas has joined #riscv
cwebber has joined #riscv
sobkas has quit [Remote host closed the connection]
sobkas has joined #riscv
prabhakarlad has quit [Quit: Client closed]
sobkas has quit [Read error: Connection reset by peer]
sobkas has joined #riscv
sobkas has quit [Remote host closed the connection]
sobkas has joined #riscv
sobkas has quit [Remote host closed the connection]
sobkas has joined #riscv
sobkas has quit [Remote host closed the connection]
sobkas has joined #riscv
sobkas has quit [Remote host closed the connection]
sobkas has joined #riscv
BOKALDO has quit [Quit: Leaving]
jmdaemon has joined #riscv
mahmutov has quit [Ping timeout: 256 seconds]
Sofia has quit [Ping timeout: 240 seconds]
mahmutov has joined #riscv
Sofia has joined #riscv
rsalveti has quit [Quit: Connection closed for inactivity]
mrkajetanp has quit [Read error: Connection reset by peer]
mrkajetanp has joined #riscv
skunkjoe has joined #riscv
___nick___ has quit [Ping timeout: 256 seconds]
jjido has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
aerkiaga has joined #riscv
sobkas has quit [Quit: sobkas]
zjason` has joined #riscv
zjason has quit [Ping timeout: 256 seconds]
jjido has joined #riscv
prabhakarlad has joined #riscv
rsalveti has joined #riscv
greaser|q has joined #riscv
greaser|q has joined #riscv
greaser|q has quit [Changing host]
greaser|q is now known as GreaseMonkey
mahmutov has quit [Ping timeout: 250 seconds]
theruran has quit [Quit: Connection closed for inactivity]
skunkjoe has quit [Ping timeout: 260 seconds]
jjido has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jjido has joined #riscv
jjido has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]