sorear changed the topic of #riscv to: RISC-V instruction set architecture | https://riscv.org | Logs: https://libera.irclog.whitequark.org/riscv
huseyinkozan has quit [Quit: Konversation terminated!]
KombuchaKip has joined #riscv
jacklsw has joined #riscv
kailo has joined #riscv
seninha has quit [Quit: Leaving]
<alMalsamo> Any RISC-V boards released WITH a GPU?
KombuchaKip has quit [Ping timeout: 256 seconds]
kailo has quit [Ping timeout: 256 seconds]
kailo has joined #riscv
Sofia has quit [Ping timeout: 276 seconds]
kailo has quit [Remote host closed the connection]
kailo has joined #riscv
Sofia has joined #riscv
kailo has quit [Ping timeout: 256 seconds]
aerkiaga has quit [Remote host closed the connection]
<alMalsamo> So I just heard the claim that the RISC-V ISA actually infringes on multiple IBM patents... does anyone have more info on this?
cwebber has joined #riscv
* klys bought this item this evening: https://www.aliexpress.com/item/1005002856721588.html ;it should arrive in feb.
BOKALDO has joined #riscv
riff-IRC has quit [Remote host closed the connection]
Sofia has quit [Remote host closed the connection]
Sofia has joined #riscv
riff-IRC has joined #riscv
Sofia has quit [Remote host closed the connection]
Sofia has joined #riscv
jmdaemon has joined #riscv
motherfsck has quit [Quit: quit]
riff-IRC has quit [Ping timeout: 240 seconds]
EchelonX has quit [Quit: Leaving]
motherfsck has joined #riscv
riff-IRC has joined #riscv
riff-IRC has quit [Read error: Connection reset by peer]
riff-IRC has joined #riscv
Sofia has quit [Ping timeout: 276 seconds]
adomas has quit [Ping timeout: 245 seconds]
englishm has quit [Ping timeout: 250 seconds]
adomas has joined #riscv
catern has quit [Ping timeout: 260 seconds]
englishm has joined #riscv
jrjsmrtn has quit [Quit: ZNC 1.8.2 - https://znc.in]
jrjsmrtn has joined #riscv
Sofia has joined #riscv
vagrantc has quit [Quit: leaving]
<gordonDrogon> Feb 2023 ;-)
<gordonDrogon> (after hearing on the radio this morning about global shipping issues)
Hypercube3D has joined #riscv
Hypercube3D_ has joined #riscv
jacklsw has quit [Quit: Back to the real world]
seninha has joined #riscv
catern has joined #riscv
seninha has quit [Ping timeout: 240 seconds]
seninha has joined #riscv
seninha has quit [Quit: Leaving]
seninha has joined #riscv
Hypercube3D_ has quit [Quit: Leaving]
Hypercube3D has quit [Quit: Leaving]
Sofia has quit [Remote host closed the connection]
Sofia has joined #riscv
geranim0 has quit [Ping timeout: 240 seconds]
radu242407821 has quit [Ping timeout: 240 seconds]
jmdaemon has quit [Ping timeout: 256 seconds]
radu242407821 has joined #riscv
seninha_ has joined #riscv
seninha has quit [Ping timeout: 268 seconds]
seninha_ has quit [Quit: Leaving]
radu242407821 has quit [Ping timeout: 240 seconds]
aburgess_ has joined #riscv
aburgess has quit [Ping timeout: 240 seconds]
seninha has joined #riscv
radu242407821 has joined #riscv
BOKALDO has quit [Quit: Leaving]
radu242407821 has quit [Ping timeout: 250 seconds]
geranim0 has joined #riscv
aerkiaga has joined #riscv
alMalsamo has quit [Ping timeout: 276 seconds]
alMalsamo has joined #riscv
<la_mettrie> tried to write a bitness independent assembly code to find out the register width (instruction set bitness) of the device by reading MISA system register https://justpaste.it/8glgu
<la_mettrie> ISA manual tells it can be read with branching so I guess it's something like that
<jrtc27> you should go re-read what lui does on rv64
radu242407821 has joined #riscv
<jrtc27> (and, by extension, rv128)
<jrtc27> also what's all this .equ MISA, 0x301 #hardware dependent address of MISA register (0x301 for Longan Nano)
<jrtc27> (a) it's a CSR number not an address
<jrtc27> (c) you can just use `csrr t2, misa`, assemblers know what CSRs there are
<jrtc27> (b) the RISC-V spec defines that number as 0x301, it's not hardware dependent
<jrtc27> well, the spec does call them CSR addresses I guess, which is unnecessarily confusing
<jrtc27> there as much addresses as 1 is an address for the GPR ra
<la_mettrie> okay, thanks for the feedback. i've been really sloppy regarding to how LUI works on rv64 (I've actually read it but...)
radu242407821 has quit [Ping timeout: 240 seconds]
BOKALDO has joined #riscv
winterflaw has quit [Ping timeout: 276 seconds]
seninha has quit [Quit: Leaving]
cwebber has quit [Ping timeout: 240 seconds]
vagrantc has joined #riscv
winterflaw has joined #riscv
jacklsw has joined #riscv
radu242407821 has joined #riscv
radu242407821 has quit [Ping timeout: 250 seconds]
JanC has quit [Remote host closed the connection]
JanC has joined #riscv
<la_mettrie> I'd like to use RISC-V assembly "Hello, World!" code with Linux syscalls when spreading the word about RISC-V, but I don't have a RISC-V machine running Linux yet to test this. At least it compiles. https://pastebin.com/raw/ET1nAEkn
<la_mettrie> in case somebody dares to try the executable in his own riscv-linux system, here's the file http://95.216.192.166/~rimrunner/a.out
gioyik has joined #riscv
<jrtc27> you know you can just use qemu, right?
<jrtc27> can even use qemu-user and avoid the need for a full OS
<la_mettrie> didn't know about avoiding the OS install
<geertu> la_mettrie: Your a.out does not match the source. The code is the same, but the message is different :-)
<la_mettrie> yeah, the language is different. but it actually types the string? thanks!
<rm> better explain how to compile, not provide a binary
<rm> I compiled your code by some guesses how to, but it does not run
<geertu> la_mettrie: YOur binary doesn't run on my starlight: cannot execute binary file: Exec format error
<la_mettrie> i used "riscv64-unknown-elf-as" for compiling
<la_mettrie> probably without any flags
<jrtc27> yeah and that just produces an object file
<jrtc27> it doesn't make an executable
<jrtc27> besides, don't use as directly
<jrtc27> use gcc/clang and let them call the assembler
<jrtc27> they handle all the flag mess for you
<geertu> la_mettrie: ELF 64-bit LSB relocatable, UCB RISC-V, version 1 (SYSV), not stripped
seninha has joined #riscv
<geertu> A real executable would say "executable
<geertu> " isntead of "relocatable"
mahmutov_ has joined #riscv
<rm> yeah I forgot 'ld'. Now it works, but doesn't print a newline before returning to shell; added that too
<jrtc27> *sigh* and just like as, don't run a bare ld
<jrtc27> always use gcc/clang for everything
<rm> even for a hello world? :)
<jrtc27> it's a complete pain when people use as or ld directly as it ties you to that specific implementation
<jrtc27> llvm and binutils have very different ways of invoking the assembler
<jrtc27> lld is more compatible with GNU ld but not entirely
<jrtc27> I mean
<jrtc27> it's easier
<jrtc27> gcc -o test test.s
<jrtc27> vs as test -o test.o && ld test.o -o test
<jrtc27> plus any flag mess you need
<ssb> it should not be that hard, "gcc -v hello.c" surely prints lots of line noise these days, and then collect2 even forgets to add -v to ld. Yet this all is decipherable and works by parts.
<jrtc27> you're writing raw standalone assembly
<jrtc27> add -nostdlib
mahmutov_ has quit [Read error: Connection reset by peer]
<jrtc27> otherwise gcc will pull in libc and, more importantly, crt files, where crt1.o defines a _start that overrides yours
<rm> thanks, now worked, but the result is 10 KB vs 1288 bytes with manual invocation of as + ld
<jrtc27> those warnings are dumb and another reason why the ISA version bump is a pain in the butt
<jrtc27> readelf will tell you what you've gained
<jrtc27> probably stuff like build id
<jrtc27> maybe some debug info
<gordonDrogon> la_mettrie, do what I did - write your own RV emulator... although there are many out there an da few in pure C which ought to be easy to get going.
seninha has quit [Remote host closed the connection]
seninha has joined #riscv
vagrantc has quit [Remote host closed the connection]
vagrantc has joined #riscv
mahmutov has joined #riscv
jacklsw has quit [Read error: Connection reset by peer]
mahmutov has quit [Ping timeout: 250 seconds]
mahmutov has joined #riscv
EchelonX has joined #riscv
radu242407821 has joined #riscv
radu242407821 has quit [Ping timeout: 240 seconds]
jmdaemon has joined #riscv
geranim0 has quit [Remote host closed the connection]
___nick___ has joined #riscv
Andre_H has joined #riscv
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #riscv
___nick___ has quit [Client Quit]
___nick___ has joined #riscv
cwebber has joined #riscv
jmdaemon has quit [Ping timeout: 256 seconds]
somlo has quit [Remote host closed the connection]
radu242407821 has joined #riscv
radu242407821 has quit [Ping timeout: 250 seconds]
jmdaemon has joined #riscv
somlo has joined #riscv
jjido has joined #riscv
cwebber has quit [Ping timeout: 268 seconds]
BOKALDO has quit [Quit: Leaving]
compnerd has joined #riscv
radu242407821 has joined #riscv
jjido has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
radu242407821 has quit [Ping timeout: 268 seconds]
jmdaemon has quit [Ping timeout: 256 seconds]
mahmutov has quit [Ping timeout: 250 seconds]
___nick___ has quit [Ping timeout: 240 seconds]
jmdaemon has joined #riscv
radu242407821 has joined #riscv
radu242407821 has quit [Ping timeout: 240 seconds]
KombuchaKip has joined #riscv
radu242407821 has joined #riscv
jjido has joined #riscv
cousteau has joined #riscv
radu242407821 has quit [Ping timeout: 256 seconds]
jjido has quit [Client Quit]
Andre_H has quit [Quit: Leaving.]