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