@stekern | LoneTech, jeremybennett: ;) | 05:31 |
---|---|---|
@stekern | I think it's in openocd, it works with debug_proxy (I'm not sure about adv_debug_sys proxy) | 05:33 |
@stekern | Maybe I should start using debuggers for something more than loading programs... | 05:34 |
ConX | hello guys! can you please check this: https://gist.github.com/ff11cec911f772cee441 Any ideas why this is happening? | 12:13 |
@stekern | ConX: the immediate can only hold 11 bits, so you are actually writing/reading spr 1 | 12:33 |
@stekern | sorry, it's 11 bits in mtspr, in mfspr it's 16 bits | 12:38 |
@stekern | so you are writing spr 0x1 and reading spr 0x2801 | 12:38 |
ConX | :D | 12:41 |
ConX | thank you once more stekern! | 12:41 |
ConX | so I must use a register to solve it | 12:42 |
@stekern | yup | 12:42 |
ConX | the rA register represents the upper 5 bits ? | 12:59 |
ConX | so I have to set rA to 3 to be able to write on spr 0x2801? | 13:00 |
ConX | set rA to 5 (101)* | 13:02 |
@juliusb | immidiates in both mtspr and mfspr are 16-bits | 13:09 |
@stekern | you are right... | 13:09 |
@stekern | I missed the 5 bits in 25:21 | 13:10 |
@stekern | then I don't know what's the problem | 13:11 |
@stekern | is the MAC enabled? | 13:14 |
@stekern | is it actually possible to write MACLO manually? | 13:15 |
ConX | I just wanted to use a spr register to store a counter | 13:16 |
ConX | I have tried to write and read from 0x6000 (which is the first reserved for future use spr) | 13:17 |
ConX | with no success | 13:17 |
ConX | so I thought I should try MAC (which I don't use) | 13:17 |
@stekern | but is it enabled? | 13:19 |
ConX | nope :) | 13:20 |
ConX | \//`define OR1200_MAC_IMPLEMENTED | 13:20 |
ConX | s/\// | 13:20 |
@stekern | that seems like a reson why it's not working ;) | 13:21 |
ConX | :P | 13:21 |
ConX | I thought that SPRs are implemented this way or the other | 13:22 |
ConX | something (outside my code) must change the value I set in MACLO | 14:22 |
ConX | which tool are you using to visualize or1200? | 14:36 |
@stekern | visualize? | 16:18 |
ConX | stekern: view a circuit schematic | 16:27 |
_franck_ | I think I can see the "stepi bug" on simu | 23:53 |
_franck_ | the ins replaced by the trap ins is never executed when stepi after that breakpoint | 23:55 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!