tpb has quit [Remote host closed the connection]
tpb has joined #litex
Degi_ has joined #litex
Degi has quit [Ping timeout: 265 seconds]
Degi_ is now known as Degi
analognoise has joined #litex
TMM_ has joined #litex
<
tnt>
gatecat: mmm ... there seem to be a lot of atomic ops before it even setups the kernel traps.
<
gatecat>
tnt: yeah, this was on top of antmicros heavily patched tree, I suspect those may have been patched out too
<
gatecat>
tbh emulating them in M-mode is a better option, but I don't have a good reference for that
<
gatecat>
someone else here might
<
tnt>
So the kernel by default runs in S-mode ?
michalsieron has joined #litex
TMM_ has joined #litex
novenary has joined #litex
michalsieron has quit [Ping timeout: 258 seconds]
geertu has quit [Ping timeout: 252 seconds]
geertu has joined #litex
<
tnt>
mmm ... does the kernel except to be able to do misaligned loads ? I get a "load address misaligned" exception.
<
gatecat>
I think it expects those to be emulated in M-mode too
<
tnt>
But how does linux-on-litex handles that ?
<
gatecat>
it used to have its own emulator, now it uses opensbi by the looks of things
<
tnt>
was that done in the bios ?
<
gatecat>
no, it goes bios->opensbi (which remains resident in m-mode)->linux
<
gatecat>
the emulator used to be in the place of opensbi
<
tnt>
right, I mean before it used opensbi.
<
tnt>
I'm trying to find related code in the litex git history
<
gatecat>
was the commit that removed it and switched to opensbi
Coldberg has joined #litex
C-Man has quit [Ping timeout: 252 seconds]