<ysionneau>
ok, I got qemu to send dummy values for PSW, TLBVADDR, TLBPADDR and TLBBADVADDR to GDB
<ysionneau>
communication between the two is ok
<ysionneau>
now that would be nice to send real values according to the state of lm32 core
<ysionneau>
mwalle: I have something working for PSW and TLBVADDR, now the tricky part is the TLBPADDR / TLBBADVADDR which share the same CSR id
<ysionneau>
and one is write-only and the other one is read-only
<ysionneau>
maybe we can declare the two as two separate different registers, but make qemu send "0xdeadbeef" when GDB wants to get the value of TLBPADDR, to tell the user "this is dummy value"
<ysionneau>
and we declare a env->tlbbadvaddr in qemu which is updated by tlb miss/fault handler of qemu, and then sent back to GDB when TLBBADVADDR value is requested
<ysionneau>
dunno if this sounds crazy or not
<ysionneau>
ah env->tlbbadvaddr is already declared and updated where it should be, sorry I missed it