sorear changed the topic of #riscv to: RISC-V instruction set architecture | https://riscv.org | Logs: https://libera.irclog.whitequark.org/riscv
TMM_ has quit [*.net *.split]
muurkha has quit [*.net *.split]
vagrantc has quit [*.net *.split]
riff-IRC has quit [*.net *.split]
cwebber has quit [*.net *.split]
sm2n has quit [*.net *.split]
rah has quit [*.net *.split]
sauce has quit [*.net *.split]
ddevault has quit [*.net *.split]
rah has joined #riscv
sm2n has joined #riscv
ddevault has joined #riscv
winterflaw has quit [Ping timeout: 276 seconds]
TMM_ has joined #riscv
sauce has joined #riscv
vagrantc has joined #riscv
muurkha has joined #riscv
sheb has quit [Ping timeout: 240 seconds]
pecastro has quit [Ping timeout: 252 seconds]
jacklsw has joined #riscv
shicz2 has quit [Ping timeout: 252 seconds]
shicz2 has joined #riscv
riff-IRC has joined #riscv
sheb has joined #riscv
sheb has quit [Remote host closed the connection]
sheb has joined #riscv
frost has joined #riscv
shicz2 has quit [Ping timeout: 256 seconds]
shicz2 has joined #riscv
gudenau has joined #riscv
vagrantc has quit [Quit: leaving]
shicz2 has quit [Ping timeout: 252 seconds]
shicz2 has joined #riscv
gudenau[m] has joined #riscv
gudenau has quit [Quit: Client closed]
s0ph0s|alt has quit [Quit: My ZNC server died. Probably updating my kernel…]
kailo has joined #riscv
EchelonX has joined #riscv
shicz2 has quit [Ping timeout: 256 seconds]
shicz2 has joined #riscv
sbodin has quit [Quit: Leaving]
PyroPeter has quit [Ping timeout: 250 seconds]
PyroPeter has joined #riscv
peepsalot has quit [Quit: Connection reset by peep]
peepsalot has joined #riscv
rsalveti has quit [Quit: Connection closed for inactivity]
<gudenau[m]> Anyone have documentation for the state qemu starts in and how to find information about the device like memory, CPU info, memory mapped devices, etc.?
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #riscv
EchelonX has quit [Quit: Leaving]
riff-IRC has quit [Remote host closed the connection]
riff-IRC has joined #riscv
tekkamanninja has joined #riscv
jacklsw has quit [Quit: Back to the real world]
jamtorus has joined #riscv
jellydonut has quit [Ping timeout: 252 seconds]
philhug[m] has joined #riscv
BOKALDO has joined #riscv
jacklsw has joined #riscv
winterflaw has joined #riscv
elastic_dog has quit [Ping timeout: 260 seconds]
elastic_dog has joined #riscv
pecastro has joined #riscv
crabbedhaloablut has quit [Ping timeout: 276 seconds]
crabbedhaloablut has joined #riscv
jamtorus is now known as jellydonut
shicz2 has quit [Ping timeout: 256 seconds]
shicz2 has joined #riscv
adjtm_ has joined #riscv
adjtm has quit [Read error: Connection reset by peer]
jacklsw has quit [Ping timeout: 252 seconds]
shicz2 has quit [Ping timeout: 252 seconds]
shicz2 has joined #riscv
shicz2 has quit [Ping timeout: 256 seconds]
shicz2 has joined #riscv
freakazoid12345 has joined #riscv
freakazoid343 has quit [Ping timeout: 240 seconds]
frost has quit [Quit: Connection closed]
zjason` is now known as zjason
BOKALDO has quit [Quit: Leaving]
jacklsw has joined #riscv
BOKALDO has joined #riscv
rsalveti has joined #riscv
freakazoid12345 has quit [Read error: Connection reset by peer]
freakazoid12345 has joined #riscv
sheb has quit [Quit: Leaving]
dermato has quit [Quit: WeeChat 3.1]
cwebber has joined #riscv
nvmd has joined #riscv
jacklsw has quit [Quit: Back to the real life]
nvmd has quit [Quit: Later, nerds.]
Andre_H has joined #riscv
<kailo> Hello, I'm working on porting a linux arm64 toolchain to risc-v. I'm wondering what is the best environment defines I can check for to determine if the architecture is riscv64 in C
<geertu> kailo: Looking at the output of "riscv64-linux-gnu-gcc -dM -E - < /dev/null", I think you can use "#if defined(__riscv) && defined(__LP64__)"
<kailo> thank you
<kailo> hmm interesting.. when I run that on my riscv machine I actually don't get riscv
mahmutov has joined #riscv
<kailo> wow nvm, too many terminals
<jrtc27> defined(__riscv) && __riscv_xlen == 64
<jrtc27> __LP64__ only detects a specific ABI, which is the only scheme in use today, but 64-bit RISC-V on Windows would be LLP64, and in our own research we have a totally different ABI that's for an extended RISC-V
<jrtc27> but which is appropriate depends what exactly you're actually trying to do
<geertu> jrtc27: thanks for improving!
<kailo> gotcha.. yeah I've done a lot of cross platform work in the past, but never this granular. In my particular case I'm trying to filter out sys calls that appear to be unsupported
<jrtc27> do you care about XLEN of the ISA you're running on? sizeof(long)? sizeof(size_t)? sizeof(void *)? those are all different things, many combination can exist, and have existed on other architectures
<jrtc27> those won't even care about 32-bit vs 64-bit
<jrtc27> they also won't exist for linux on riscv32
<kailo> yep exactly, __riscv is enough to check for it
<jrtc27> so I'd just use __riscv on its own
<kailo> Could anyone clarify exactly what the purpose of these sys calls are for in this context? From what I understand, it's exposing low-level system calls to the toit compiler
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #riscv
<jrtc27> seccomp
<jrtc27> a terrible non-abstraction that's the way you restrict syscalls for sandboxes in linux
<kailo> I see
<kailo> neat and awful way of handling that haha
smartin has joined #riscv
<kailo> fantastic, __riscv on its own did the trick. thanks again
<kailo> at some point I'll actually need to dig through the syscalls that are supported by riscv so I don't miss any
adjtm_ has quit [Quit: Leaving]
theruran_ has joined #riscv
Andre_H has quit [Quit: Leaving.]
nvmd has joined #riscv
Sofia has quit [Ping timeout: 276 seconds]
BOKALDO has quit [Quit: Leaving]
Sofia has joined #riscv
cwebber has quit [Remote host closed the connection]
drmpeg has left #riscv [#riscv]
drmpeg has joined #riscv
EchelonX has joined #riscv
tekkamanninja has quit [Ping timeout: 256 seconds]
plantman has joined #riscv
tekkamanninja has joined #riscv
zjason` has joined #riscv
zjason has quit [Ping timeout: 256 seconds]
torbjornsd has joined #riscv
plantman has quit [Ping timeout: 245 seconds]
drewfustini has quit []
drewfustini has joined #riscv
smartin has quit [Ping timeout: 252 seconds]
plantman has joined #riscv
adjtm has joined #riscv
torbjornsd has quit [Quit: Leaving]
nvmd has quit [Ping timeout: 252 seconds]
nvmd has joined #riscv
mahmutov has quit [Ping timeout: 256 seconds]
nvmd has quit [Quit: Later, nerds.]
ahs3 has quit [Remote host closed the connection]
vagrantc has joined #riscv