-!- _franck__ is now known as _franck_ | 10:29 | |
stekern | which l.nop is it that prints the value in r3? | 14:44 |
---|---|---|
stekern | l.nop 1 | 14:46 |
jeremybennett | I think that's exit. Hold on while I look up. | 14:49 |
jeremybennett | l.nop 4. | 14:51 |
jeremybennett | Here's the header section from Or1ksim | 14:51 |
jeremybennett | #define NOP_NOP 0x0000 /* Normal nop instruction */ | 14:51 |
jeremybennett | #define NOP_EXIT 0x0001 /* End of simulation */ | 14:51 |
jeremybennett | #define NOP_REPORT 0x0002 /* Simple report */ | 14:51 |
jeremybennett | #define NOP_PUTC 0x0004 /* JPB: Simputc instruction */ | 14:51 |
jeremybennett | #define NOP_CNT_RESET 0x0005 /* Reset statistics counters */ | 14:51 |
jeremybennett | #define NOP_GET_TICKS 0x0006 /* JPB: Get # ticks running */ | 14:51 |
jeremybennett | #define NOP_GET_PS 0x0007 /* JPB: Get picosecs/cycle */ | 14:51 |
jeremybennett | #define NOP_TRACE_ON 0x0008 /* Turn on tracing */ | 14:51 |
jeremybennett | #define NOP_TRACE_OFF 0x0009 /* Turn off tracing */ | 14:51 |
jeremybennett | #define NOP_RANDOM 0x000a /* Return 4 random bytes */ | 14:51 |
jeremybennett | #define NOP_OR1KSIM 0x000b /* Return non-zero if this is Or1ksim */ | 14:51 |
jeremybennett | 3 is PRINTF, which is obsolete | 14:51 |
stekern | ok, so it's l.nop 2 I want | 14:54 |
stekern | I want to print the value of r3, that's what it doesn, right? | 14:54 |
stekern | -n | 14:54 |
stekern | ah, those trace nops might come in handy as well | 14:55 |
stekern | (my current trace is 800MB) | 14:58 |
jeremybennett | Yes - that'w what you want. | 15:32 |
jeremybennett | IIRC Joern put quite a nice trace system into Or1ksim, based on what was done for the Renesas SH family. | 15:32 |
jeremybennett | You might want to take code from that. Very good one line per instruction trace of execution. | 15:33 |
jeremybennett | If that is what you are trying to do of course! | 15:33 |
stekern | I try to print r3 in a critical place where a printk isn't suitable ;) | 15:36 |
stekern | the trace note was unrelated to what I'm doing at the moment, I just hadn't noticed that there was such nops available | 15:38 |
stekern | (and it is or1ksim I'm using) | 15:39 |
stekern | hmm, interesting, I unintentionally changed the order of called-save registers in my second to last commit, that completely changed the behaviour of the bug I'm examining | 18:42 |
stekern | s/called/callee | 18:43 |
stekern | probably is related, the thing I'm seeing is that the address to the struct sent to wait_for_completion() is off by four from the struct that is later completed | 18:47 |
stekern | this debugging is fun ;) makes me look at places in the linux kernel I probably would never bother to examing otherwise | 18:48 |
* derRichard knows this feeling | 18:50 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!