| --- Log opened Fri Jan 05 00:00:14 2018 | ||
| --- Day changed Fri Jan 05 2018 | ||
| nooga | Is there a way to dump cpu state from or1ksim after each cycle? | 05:25 |
|---|---|---|
| windel | Hi nooga | 05:52 |
| windel | Yes | 05:52 |
| windel | You can use tracing | 05:53 |
| windel | For example: qemu-system-or1k -kernel baremetal.bin -M or1k-sim -serial stdio -m 16M -D trace.txt -d in_asm,exec,int,op_opt,cpu | 05:53 |
| windel | I am facing issues with the loading of a binary file btw | 05:54 |
| windel | I think this line in qemu is the root cause: https://github.com/qemu/qemu/blob/master/hw/openrisc/openrisc_sim.c#L112 | 05:54 |
| windel | At startup the PC contains a random number. | 05:55 |
| nooga | hah | 05:57 |
| nooga | I'm writing my own emu and debugging it when it makes a mistake after millions of instructions is pretty futile | 05:58 |
| nooga | my idea is to dump states from a working emu and my emu | 05:58 |
| nooga | and then compare the two to find places where they diverge | 05:58 |
| nooga | this requires dumping at least the pc and gpr values | 06:00 |
| windel | That makes sense | 06:06 |
| windel | I think you can use qemu to dump pretty much everything you want | 06:06 |
| windel | And then transform it with a script into the format you need to compare it. | 06:07 |
| nooga | yup, I think that is what I'm going to try now | 06:09 |
| nooga | thanks! | 06:09 |
| windel | May the source be with you ;) | 06:30 |
| rohitksingh | juliusb: Hi! :) Could you please give any pointers on how we can use this module? https://github.com/openrisc/mor1kx/blob/master/rtl/verilog/mor1kx_fetch_tcm_prontoespresso.v Will directly replacing the prontoespresso's fetch module with this one work fine? | 06:51 |
| shorne | wbx: I posted a patch for the nds32 issue https://github.com/stffrdhrn/uclibc-ng/commits/gen-syscall | 07:22 |
| shorne | I started to test but had some issues with th nds32 toolchain build | 07:22 |
| shorne | maybe you have better luck? | 07:22 |
| nooga | wow, hehe, register dump -> 400MB | 08:52 |
| wbx | shorne: thx. will test. | 17:12 |
| -!- Netsplit *.net <-> *.split quits: jonmasters, mithro | 21:27 | |
| -!- mithro_ is now known as mithro | 21:27 | |
| --- Log closed Sat Jan 06 00:00:32 2018 | ||
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!