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.?
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