--- Log opened Fri Jan 13 00:00:11 2017 | ||
stekern | shorne: what's the problem now? | 04:18 |
---|---|---|
shorne | stekern: havent had time to trace it... getting some time now | 05:17 |
shorne | Actually, I was trying to compile the kernel in debug mode | 05:17 |
shorne | so I could better tie the code to the assembly | 05:18 |
shorne | but got an error "unaligned opcodes"... I fixed that and am adding a patch. The issue is the ".strings" in head.S are in executable section. SO dwarf generation complains. | 05:19 |
shorne | now running debug kernel | 05:19 |
shorne | and it works fine | 05:19 |
shorne | I think my pc adjustment fails | 06:06 |
shorne | after l.rfe, code dies, adjustment logic shouldnt be hit and it is | 06:07 |
shorne | yup boots without my code :) | 06:18 |
shorne | so my qemu patch works, but not my kernel patch | 06:20 |
shorne | stekern: this is failing on this line | 06:21 |
shorne | https://github.com/stffrdhrn/linux/blob/openrisc-4.11/arch/openrisc/kernel/traps.c#L344 | 06:21 |
shorne | When exception is not in delay slot this if condition evaluates true. | 06:22 |
shorne | if (regs->sr & SPR_SR_DSX) { | 06:22 |
shorne | did I write something wrong there? | 06:23 |
shorne | It should be false... maybe another bug in qemu | 06:23 |
stekern | maybe it doesn't implement the DSX flag? | 06:24 |
shorne | it does... | 06:26 |
shorne | I think its management of when its in the delay slot is wrong | 06:26 |
shorne | stekern: fyi https://github.com/qemu/qemu/blob/master/target/openrisc/interrupt.c#L39 | 06:28 |
shorne | but I think D_FLAG has a bug | 06:28 |
shorne | ah... doh, qemu will DSX in delay, but then never clear it ever | 16:39 |
shorne | ok, qemu fixed | 16:41 |
shorne | my adjust pc code works | 16:41 |
shorne | ok, qemu patch sent, now I think linux patches are ready | 16:58 |
shorne | I would have to say qemu is pretty nice (compared to or1ksim) it might be a bit faster | 17:26 |
shorne | ah... checkpatch warnings | 18:33 |
--- Log closed Sat Jan 14 00:00:13 2017 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!