Friday, 2020-01-24

*** tpb has joined #litex00:00
*** rohitksingh has joined #litex01:02
*** rohitksingh has quit IRC01:10
*** rohitksingh has joined #litex01:15
*** xobs has quit IRC01:40
*** rohitksingh has quit IRC03:10
*** xobs has joined #litex03:38
xobsYeah, I do have /dev/ptmx in WSL, but I'm not sure if that's available in Windows-land.03:38
*** CarlFK has joined #litex04:38
*** futarisIRCcloud has quit IRC05:55
*** CarlFK has quit IRC05:57
*** CarlFK has joined #litex06:01
*** futarisIRCcloud has joined #litex06:22
keesjfrom 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)06:48
xobsHey, is anyone running Linux on RISCV?06:54
xobsI'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.06:55
xobsAh, it looks like it should raise illegalAccess: https://github.com/SpinalHDL/VexRiscv/blob/master/src/main/scala/vexriscv/plugin/CsrPlugin.scala#L104007:08
tpbTitle: VexRiscv/CsrPlugin.scala at master · SpinalHDL/VexRiscv · GitHub (at github.com)07:08
xobsEven though it doesn't in Renode.07:40
xobsSo 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.07:40
CarlFKxobs: what's vex?08:01
xobsCarlFK: vexriscv08:01
xobsI'm trying to get verilator to work now so I can test it out.  Seems like the perfect usecase.08:02
CarlFKah no.08:02
_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.py10:39
tpbTitle: linux-on-litex-vexriscv/sim.py at master · litex-hub/linux-on-litex-vexriscv · GitHub (at github.com)10:39
_florent_https://github.com/litex-hub/linux-on-litex-vexriscv#running-the-litex-simulation10:40
tpbTitle: GitHub - litex-hub/linux-on-litex-vexriscv: Linux on LiteX-VexRiscv (at github.com)10:40
*** mithro has quit IRC10:56
*** mithro has joined #litex10:57
xobs_florent_: thanks, that might help! I'm working to get something working in Verilator, but having Linux would help too.11:01
*** rohitksingh has joined #litex13:45
*** guan has quit IRC14:53
*** guan has joined #litex14:53
xobs_florent_: huh. That seems like unintended behavior.  I ran that program in that simulator, and it quit verilator.15:08
xobsAh, no, that's probably expected when it gets an illegal instruction.15:20
_florent_xobs: yes, the CPU is probably writing the finish CSR on illegal instruction to stop the simulation15:25
xobsRight.  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.15:38
sorearxobs: it should raise illegal instruction, not an access/page fault15:39
sorearbasically everything in riscv is an illegal instruction unless there’s more specific handling15:40
xobssorear: yeah, that's what I see under Verilator, but not under Renode: `CPU Exception: Illegal instruction 0x18002573 at 0x2050020c`16:26
sorearrenode seems buggy with exceptions16:28
*** rohitksingh has quit IRC16:40
*** rohitksingh has joined #litex17:09
*** rohitksingh has quit IRC17:33
*** rohitksingh has joined #litex17:57
*** rohitksingh has quit IRC18:07
*** rohitksingh has joined #litex19:43
*** rohitksingh has quit IRC19:49
*** rohitksingh has joined #litex20:42
*** rohitksingh has quit IRC21:39
*** rohitksingh has joined #litex23:01
*** CarlFK has quit IRC23:17
*** CarlFK has joined #litex23:37

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!