<courmisch>
how should userspace probe if RDCYCLE is permitted? try and catch SIGILL?
admiral_frost has joined #riscv
mlw has quit [Ping timeout: 255 seconds]
Andre_Z has joined #riscv
junaid_ has quit [Remote host closed the connection]
billchenchina has joined #riscv
junaid_ has joined #riscv
admiral_frost has quit [Quit: It's time]
prabhakarlad has joined #riscv
handsome_feng has quit [Quit: Connection closed for inactivity]
hightower2 has joined #riscv
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #riscv
Nixkernal has joined #riscv
[exa] has joined #riscv
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #riscv
junaid_ has quit [Remote host closed the connection]
junaid_ has joined #riscv
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #riscv
admiral_frost has joined #riscv
hasturtium has left #riscv [Leaving]
hightower2 has quit [Read error: Connection reset by peer]
prabhakarlad has quit [Ping timeout: 245 seconds]
heat has joined #riscv
hightower2 has joined #riscv
billchenchina has quit [Read error: Connection reset by peer]
billchenchina has joined #riscv
aburgess has joined #riscv
mlw has joined #riscv
<sorear>
you'd need a rather large comment to the effect that probing _extensions_ with SIGILL is never correct due to the possibility of reserved space being used for non-standard extensions, but Zictr is part of the required hardware baseline and all you're actually probing is kernel behavior
raym has quit [Quit: update to FreeBSD 14.0-BETA5]
admiral_frost has left #riscv [It's time]
Trifton has quit [Quit: Error: no route to host]
tsenko has joined #riscv
<tsenko>
hi ... on sifive what this address 0x10010000
<tsenko>
.. this "hello worl" example seems to be writing to it
<tsenko>
also it's using andi t1,t1,0 ... apparently to clear a register .. is that normal
<sorear>
idiomatically "li t1, 0" which is a pseudoinstruction expanding to "addi t1, zero, 0"; andi will cause a false dependency on most implementations, and IMO this is part of why HINTs are so restricted
notgull has quit [Ping timeout: 255 seconds]
<heat>
false dependency on what? t1?
<sorear>
the new t1 on the old t1
notgull has joined #riscv
<heat>
oh sorry, i read addi and not andi
<heat>
i have used xor reg, reg, reg as an x86-ism before :) but it's probably worth changing to li reg, 0
<heat>
it's what compilers prefer, at least
junaid_ has quit [Remote host closed the connection]
ntwk has quit [Read error: Connection reset by peer]
junaid_ has joined #riscv
ntwk has joined #riscv
<sorear>
i've seen "or" as a mips-ism before but this is the first time i've seen andi
<tsenko>
what's or
<tsenko>
oh xor
<tsenko>
just for clearing ?
<sorear>
I don't follow
billchenchina has quit [Remote host closed the connection]
<tsenko>
me neither . .sorry
* tsenko
laughs
Trifton has joined #riscv
billchenchina has joined #riscv
dobson has quit [Quit: Leaving]
BootLayer has quit [Quit: Leaving]
dobson has joined #riscv
Jackneill has quit [Ping timeout: 260 seconds]
junaid_ has quit [Remote host closed the connection]