sorear changed the topic of #riscv to: RISC-V instruction set architecture | https://riscv.org | Logs: https://libera.irclog.whitequark.org/riscv | Backup if libera.chat and freenode fall over: irc.oftc.net
khem has joined #riscv
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
toshywoshy has quit [Ping timeout: 268 seconds]
sm2n has quit [Ping timeout: 272 seconds]
sh1r4s3 has quit [Quit: Lost terminal]
valentin_ has quit [Read error: Connection reset by peer]
valentin has joined #riscv
toshywoshy has joined #riscv
toshywoshy has quit [Ping timeout: 272 seconds]
toshywoshy has joined #riscv
valentin has quit [Read error: Connection reset by peer]
valentin has joined #riscv
emv has joined #riscv
vagrantc has joined #riscv
valentin_ has joined #riscv
valentin has quit [Read error: Connection reset by peer]
davidlt has joined #riscv
frost has joined #riscv
jamtorus has joined #riscv
iorem has quit [Quit: Connection closed]
jellydonut has quit [Ping timeout: 265 seconds]
khem has quit [Quit: Sleeping]
valentin_ has quit [Read error: Connection reset by peer]
valentin has joined #riscv
davidlt has quit [Ping timeout: 252 seconds]
vagrantc has quit [Quit: leaving]
emv has quit [Ping timeout: 268 seconds]
valentin has quit [Read error: Connection reset by peer]
valentin has joined #riscv
emv has joined #riscv
emv has quit [Ping timeout: 264 seconds]
davidlt has joined #riscv
valentin has quit [Read error: Connection reset by peer]
valentin has joined #riscv
jamtorus is now known as jellydonut
iorem has joined #riscv
iorem100 has joined #riscv
jellydonut has quit [Read error: Connection reset by peer]
iorem has quit [Ping timeout: 244 seconds]
jellydonut has joined #riscv
emv has joined #riscv
Sos has joined #riscv
SwitchOnFreenode has quit [Remote host closed the connection]
SwitchOnFreenode has joined #riscv
valentin_ has joined #riscv
valentin has quit [Read error: Connection reset by peer]
emv has quit [Ping timeout: 268 seconds]
Andre_H has quit [Ping timeout: 272 seconds]
aredridel has quit [Quit: Ping timeout (120 seconds)]
radu242 has quit [Quit: The Lounge - https://thelounge.chat]
aredridel has joined #riscv
radu242 has joined #riscv
hendursa1 has joined #riscv
hendursaga has quit [Ping timeout: 252 seconds]
clandmeter has joined #riscv
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #riscv
Sos has quit [Ping timeout: 264 seconds]
smartin has joined #riscv
<enthusi> Hi, anyone received their unmatched from mouser.de yet?
usama has joined #riscv
_whitelogger has joined #riscv
<leah2> hopefully today
<leah2> i know someone from jp who got it yesterday
<geist> oh cool, yay
_whitelogger has joined #riscv
Sos has joined #riscv
bgamari has quit [Quit: ZNC 1.8.1 - https://znc.in]
bgamari has joined #riscv
jellydonut has quit [Read error: Connection reset by peer]
jellydonut has joined #riscv
TwoNotes has joined #riscv
usama has quit [Ping timeout: 268 seconds]
usama has joined #riscv
elastic_dog has quit [Ping timeout: 264 seconds]
choozy has joined #riscv
oaken-source has quit [Quit: leaving]
oaken-source has joined #riscv
Guest7763 has joined #riscv
elastic_dog has joined #riscv
Guest7763 has quit [Quit: Leaving]
SwitchOnFreenode has quit [Remote host closed the connection]
SwitchOnFreenode has joined #riscv
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
fabs has quit [Quit: fabs]
fabs has joined #riscv
fabs has quit [Client Quit]
hendursa1 has quit [Quit: hendursa1]
hendursaga has joined #riscv
jeancf has joined #riscv
jeancf has quit [Client Quit]
jeancf has joined #riscv
jeancf has quit [Client Quit]
jeancf has joined #riscv
s0s has joined #riscv
<jeancf> When the firmware of the BL602 boots it lists features as RV32-ACFIMX. What is the 'X' about?
Sos has quit [Ping timeout: 244 seconds]
fabs has joined #riscv
<jrtc27> jeancf: X is a prefix for non-standard extensions, ie it's meant to be Xfoo
<jrtc27> there is however only a single bit in misa for any non-standard extension, called X
<jrtc27> my guess is they have their own non-standard extension and have borked the naming of it, ie not given it a name at all
<jrtc27> also, that is not a valid arch string
<jrtc27> they must be in "canonical order" and without the -
<jrtc27> so it should be RV32IMAFCXfoo
<jrtc27> this is all documented in the "ISA Extension Naming Conventions" chapter of the RISC-V unprivileged spec
<xentrac> aye
jeancf has quit [Ping timeout: 264 seconds]
frost has quit [Quit: Connection closed]
emv has joined #riscv
valentin_ has quit [Read error: Connection reset by peer]
valentin has joined #riscv
cmuellner_ has quit [Remote host closed the connection]
emv has quit [Ping timeout: 252 seconds]
_whitelogger has joined #riscv
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #riscv
usama has quit [Ping timeout: 272 seconds]
iorem100 has quit [Quit: Connection closed]
s0s has quit [Quit: Leaving]
Andre_H has joined #riscv
khem has joined #riscv
FluffyMask has joined #riscv
<enthusi> leah2: Yeah, it said june 1st but then I heard rumors(?) thats mouser.de has not yet received their boards even
<leah2> mine arrived in köln today, not sure it will make it to munich...
khem has quit [Quit: CU]
sm2n has joined #riscv
cmuellner has joined #riscv
choozy has joined #riscv
jeancf has joined #riscv
sm2n has quit [*.net *.split]
connojd has quit [*.net *.split]
merry has quit [*.net *.split]
theruran has quit [*.net *.split]
wingsorc__ has quit [*.net *.split]
Amanieu has quit [*.net *.split]
gordonDrogon has quit [*.net *.split]
guerby has quit [*.net *.split]
rektide has quit [*.net *.split]
meowray has quit [*.net *.split]
sorear has quit [*.net *.split]
aurel32 has quit [*.net *.split]
kgz has quit [*.net *.split]
hl has quit [*.net *.split]
agraf has quit [*.net *.split]
avoidr has quit [*.net *.split]
clandmeter has quit [*.net *.split]
mwbrown has quit [*.net *.split]
xentrac has quit [*.net *.split]
geertu has quit [*.net *.split]
sirn has quit [*.net *.split]
connojd has joined #riscv
aurel32 has joined #riscv
avoidr has joined #riscv
gordonDrogon has joined #riscv
xentrac has joined #riscv
mwbrown has joined #riscv
meowray has joined #riscv
theruran has joined #riscv
sorear has joined #riscv
meowray has quit [Changing host]
meowray has joined #riscv
sm2n has joined #riscv
Amanieu has joined #riscv
guerby has joined #riscv
wingsorc has joined #riscv
agraf has joined #riscv
xentrac has quit [Changing host]
xentrac has joined #riscv
hl has joined #riscv
merry has joined #riscv
sirn has joined #riscv
jeancf has quit [Ping timeout: 265 seconds]
kgz has joined #riscv
geertu has joined #riscv
rektide has joined #riscv
avoidr has quit [Quit: leaving]
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
avoidr has joined #riscv
cousteau has joined #riscv
valentin_ has joined #riscv
valentin has quit [Read error: Connection reset by peer]
jeancf has joined #riscv
davidlt has quit [Ping timeout: 264 seconds]
KREYREEN has joined #riscv
SwitchOnFreenode has quit [Remote host closed the connection]
valentin_ has quit [Read error: Connection reset by peer]
valentin has joined #riscv
jeancf has quit [Ping timeout: 272 seconds]
clandmeter has joined #riscv
<dh`> so I'm trying to make a riscv gcc config for os161
<dh`> and the build failed in libgcc with "error: alias definitions not supported in this configuration"
<dh`> this doesn't appear to be anything that should be os-specific in the configury
<jrtc27> perhaps you should reconsider your choice of toolchain :)
<geist> dh`: have you tried just a plain -elf triple? I've usually done that and it works well, unles you have specific triple customizations you want
<dh`> the primary reason to have os161 configs is so that students building the toolchain for themselves have fewer opportunities to do it wrong
<dh`> (and also so the os161 makefiles don't need tweaking all the time)
<geist> hmm, well perhaps just customize it the minimum possible to copy the -elf selection in the configure files
<geist> sounds like maye it's fouling up the multilib logic
<geist> maybe one of the higher level configure things isn't selecting the right t-elf or whatnot file in gcc/config/riscv?
<dh`> so the immediate problem seems to be that ASM_OUTPUT_DEF isn't defined anywhere in gcc/config/riscv
<dh`> however it's not obvious why this is only breaking my config
<dh`> it differs from the -elf one mostly by including some additional defs for os161 and by disabling some crtstuff
<jimwilson> there is a default definition of ASM_OUTPUT_DEF in gcc/defaults.h, it is only used if SET_ASM_OP is defined, this is defined in gcc/config/elfos.h which almost all elf targets include
<jimwilson> no one has tested any non-elf gcc riscv support as far as I know
<dh`> I have elfos.h
<dh`> hmm
<dh`> aha
<jrtc27> someone on risc-v international slack was asking about PE/COFF support the other day :')
<dh`> the problem was #undef SET_ASM_OP cargo-culted from the mips config
<dh`> I wish gcc configury were more declarative
<dh`> someday dhcc will happen and then people can see how it ought to be done ;-)
<geist> oh interesting. i wonder how the riscv PE stuff is done for uefi now? maybe objcopy from ELF?
Gravis has quit [Ping timeout: 252 seconds]
Gravis has joined #riscv
Gravis has joined #riscv
Gravis has quit [Changing host]
<sorear> when I last looked at the PE spec it was really not set up to support anything other than EFI
<sorear> and PE has 4-bit (!) relocation type fields, which are easy to run out of if that's not done very carefully
valentin has quit [Read error: Connection reset by peer]
valentin_ has joined #riscv
<jrtc27> the current PE only has base relocations, not object only ones
<jrtc27> ie dynamic vs static in elf parlance
<jrtc27> AFAIK people just construct the headers manually in assembly
<jrtc27> at least, that's what FreeBSD does
<xentrac> ugh, efi
<cousteau> oh no, bootloaders
<xentrac> bootloaders can be better than efi
<xentrac> like, literally everything else i've ever seen
<jrtc27> sorear: 4 bits for base relocations, yes, but object only relocations have a full 2 bytes
<jrtc27> ie it's a good thing they prelink everything at a preferred load address, because then you don't need so many dynamic relocation types...
<geist> ah so it's set up such that the only real way to do it is to link to ELF and then convert
zjason has quit [Read error: Connection reset by peer]
zjason has joined #riscv
mhorne has quit [Ping timeout: 252 seconds]
riff-IRC has quit [Ping timeout: 272 seconds]
smartin has quit [Quit: smartin]
onoffon has joined #riscv
mhorne has joined #riscv
<TwoNotes> Trying to use gdb-multiarch against QEMU, emulating RV64. When I try to connect them I get "bfd requires flen 8, but target has flen 0". What is BFD? What is FLEN? I have debugged other programa this way
<dh`> bfd is 'binary format descriptor', the retargetability backend goo of binutils and gdb
<dh`> flen, dunno
<TwoNotes> Hmm. Used same linker script and toolchain as when this worked.
<jrtc27> FLEN is the size of your floating-point registers
<jrtc27> I guess it thinks your QEMU has no floating-point support and is unhappy about that
<TwoNotes> Ah. That is a change. I specified march=rv64gc this time.
onoffon has quit [Quit: CU]
<TwoNotes> When assembling
<jrtc27> (FLEN defined in 12.1 F Register State of the unprivileged spec, FWIW)
<TwoNotes> I will try going back to RV64im for now. Im not doing any flaoting now anyway
<dh`> ah, that flen
<TwoNotes> Ah, then was it.
<TwoNotes> I will deal with that later
<TwoNotes> I had mixed C and AS code, and the C compiler was putting out stuff suggesting it wanted to do float hings, which is why I changed to 'gc'
<TwoNotes> I will omit the C code for now
<jrtc27> floating-point should work just fine
<jrtc27> unless you turn it off in QEMU...
<jrtc27> then it'll probably not report it to GDB?
<TwoNotes> So maybe it is the QEMU setting I should look at
<TwoNotes> I am still working on very low level code for now - interupt dispatching etc. Doing it in AS is fine
<sorear> march=rv64gc should go with mabi=lp64d
<jrtc27> depends what you want
<jrtc27> lp64 should *work* just less efficiently
<jrtc27> should be orthogonal to this issue
<jrtc27> TwoNotes: what's your qemu command line?
<xentrac> 'binary format descriptor' is a retronym for 'bfd'. what happened as i understand the story is that somebody at cygnus (probably gumby, i forget) wanted to make the binary backend stuff retargetable and stallman said it was way too hard and would complicate things a lot
<xentrac> and the answer was 'look, it's not such a big fucking deal'
<dh`> lol
<TwoNotes> qemu-system-riscv64 -machine sifive_u,start-in-flash=on -bios fawn.elf -serial stdio
<dh`> (I thought libbfd was older than cygnus, but maybe not)
<xentrac> it might predate cygnus's formal incorporation
<jrtc27> xentrac: arguably stallman was right, bfd is a mess and not very general, it's a very leaky abstraction that's mostly just a second copy of everything elf does
<xentrac> jrtc27: maybe a file format standard would have been better than an api standard but oo was in vogue
<TwoNotes> I even tried setting the gdb-multiarch architecture before doing the remote command, but same error
<dh`> it's supposed to abstract over binary formats
<dh`> it just doesn't do it that well
<TwoNotes> Hmm. WHat is emulated clock speed in QEMU RV64? My serial output is garbage
neg has joined #riscv
<jrtc27> configured baud rate is ignored
<jrtc27> it's an emulator
<jrtc27> IIRC
<TwoNotes> Ok - its some other problem then
<jrtc27> (uh, divisor even)
khem has joined #riscv
riff-IRC has joined #riscv
<cousteau> ...wouldn't that make it a simulator, not an emulator?
valentin has joined #riscv
valentin_ has quit [Read error: Connection reset by peer]
<jrtc27> no
<TwoNotes> I would not expect nanosecond accuracy in a software emulator. When I really needed to do that I used an oscilloscope and real hardware
<enthusi> leah2: oh, thanks. Odd... did you order very early then maybe?
dobson has joined #riscv
Gravis_ has joined #riscv
Gravis has quit [Ping timeout: 264 seconds]
valentin has quit [Read error: Connection reset by peer]
valentin_ has joined #riscv
Gravis_ has quit [Quit: Murdered]
Gravis has joined #riscv
Gravis has quit [Changing host]
Gravis has joined #riscv
hendursaga has quit [Ping timeout: 252 seconds]
hendursaga has joined #riscv
Andre_H has quit [Ping timeout: 272 seconds]
clandmeter has quit [Changing host]
clandmeter has joined #riscv
cousteau has quit [Quit: Leaving]
emv has joined #riscv
emv has quit [Ping timeout: 272 seconds]
valentin_ has quit [Read error: Connection reset by peer]
valentin has joined #riscv
Gravis has quit [Ping timeout: 264 seconds]
theruran has quit [Quit: Connection closed for inactivity]
iorem has joined #riscv
valentin has quit [Read error: Connection reset by peer]
valentin has joined #riscv