rohitksingh has joined #litex
rohitksingh has quit [Ping timeout: 248 seconds]
rohitksingh has joined #litex
xobs has quit [Ping timeout: 264 seconds]
rohitksingh has quit [Ping timeout: 245 seconds]
xobs has joined #litex
<xobs> Yeah, I do have /dev/ptmx in WSL, but I'm not sure if that's available in Windows-land.
CarlFK has joined #litex
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
CarlFK has quit [Remote host closed the connection]
CarlFK has joined #litex
futarisIRCcloud has joined #litex
<keesj> from the link I send yesterday it was introduced in windows 10 insiders preview SDK (I normally don't run windows but go quite exited by wsl)
<xobs> Hey, is anyone running Linux on RISCV?
<xobs> I'm curious what happens when you attempt to write to SATP from User mode. I'm using Renode, and the write succeeds and disables the MMU, which seems wrong, but I haven't yet found out what it's supposed to do.
<tpb> Title: VexRiscv/CsrPlugin.scala at master · SpinalHDL/VexRiscv · GitHub (at github.com)
<xobs> Even though it doesn't in Renode.
<xobs> So does anyone have a Linux handy that's running on Vex? I've got a simple program that should crash. Under Renode it takes down the whole system, but I suspect that's a bug.
<CarlFK> xobs: what's vex?
<xobs> CarlFK: vexriscv
<xobs> I'm trying to get verilator to work now so I can test it out. Seems like the perfect usecase.
<CarlFK> ah no.
<_florent_> xobs: not sure if that can be useful, but in linux-on-litex-vexriscv, we have a simulation (using verilator) that can boot Linux with VexRiscv: https://github.com/litex-hub/linux-on-litex-vexriscv/blob/master/sim.py
<tpb> Title: linux-on-litex-vexriscv/sim.py at master · litex-hub/linux-on-litex-vexriscv · GitHub (at github.com)
<tpb> Title: GitHub - litex-hub/linux-on-litex-vexriscv: Linux on LiteX-VexRiscv (at github.com)
mithro has quit []
mithro has joined #litex
<xobs> _florent_: thanks, that might help! I'm working to get something working in Verilator, but having Linux would help too.
rohitksingh has joined #litex
guan has quit []
guan has joined #litex
<xobs> _florent_: huh. That seems like unintended behavior. I ran that program in that simulator, and it quit verilator.
<xobs> Ah, no, that's probably expected when it gets an illegal instruction.
<_florent_> xobs: yes, the CPU is probably writing the finish CSR on illegal instruction to stop the simulation
<xobs> Right. Whereas with Renode, it actually gets stuck in user mode and the PC jumps to an invalid offset. Also, Renode will happily read satp all day. Currently starting verilator to see what happens if I try the same program there. I suspect it'll crash, too.
<sorear> xobs: it should raise illegal instruction, not an access/page fault
<sorear> basically everything in riscv is an illegal instruction unless there’s more specific handling
<xobs> sorear: yeah, that's what I see under Verilator, but not under Renode: `CPU Exception: Illegal instruction 0x18002573 at 0x2050020c`
<sorear> renode seems buggy with exceptions
rohitksingh has quit [Ping timeout: 260 seconds]
rohitksingh has joined #litex
rohitksingh has quit [Ping timeout: 265 seconds]
rohitksingh has joined #litex
rohitksingh has quit [Ping timeout: 265 seconds]
rohitksingh has joined #litex
rohitksingh has quit [Ping timeout: 265 seconds]
rohitksingh has joined #litex
rohitksingh has quit [Ping timeout: 265 seconds]
rohitksingh has joined #litex
CarlFK has quit [Quit: Leaving.]
CarlFK has joined #litex
tpb has quit [Remote host closed the connection]
tpb has joined #litex