Re: [Openocd-development] [PATCH] Get register value if it's invalid in cache

2011-05-18 Thread Jie Zhang
On Wed, May 18, 2011 at 1:17 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: Are you still comfortable with this patch? Yes. I think this patch provides targets freedom to choose when and how to read registers. And it should not affect existing targets. Any objections? Anyone did any

Re: [Openocd-development] [PATCH] Get register value if it's invalid in cache

2011-05-18 Thread Øyvind Harboe
Merged. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___

Re: [Openocd-development] [PATCH] Get register value if it's invalid in cache

2011-05-17 Thread Øyvind Harboe
Are you still comfortable with this patch? Any objections? Anyone did any testing on other targets? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG

[Openocd-development] [PATCH] Get register value if it's invalid in cache

2011-05-03 Thread Jie Zhang
Hi, Currently OpenOCD assumes that all targets read and save all registers in context when stop, and restore them when resume. But for the target I'm working on, the cost is too high to do that. My target has about 50 registers. Saving and restoring them needs much time. Usually GDB and users are

Re: [Openocd-development] [PATCH] Get register value if it's invalid in cache

2011-05-03 Thread Øyvind Harboe
Which target are you working on btw? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

Re: [Openocd-development] [PATCH] Get register value if it's invalid in cache

2011-05-03 Thread Jie Zhang
Hi Øyvind, On Tue, May 3, 2011 at 3:30 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: I would like to have this patch regression tested against ARM targets before I commit it. Could you or someone else help me regression test it on ARM targets? Is there any documentation about regression

Re: [Openocd-development] [PATCH] Get register value if it's invalid in cache

2011-05-03 Thread Jie Zhang
On Tue, May 3, 2011 at 3:30 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: Which target are you working on btw? I'm working on Blackfin. Jie ___ Openocd-development mailing list Openocd-development@lists.berlios.de

Re: [Openocd-development] [PATCH] Get register value if it's invalid in cache

2011-05-03 Thread Øyvind Harboe
Start with a smoketest. Would this improve performance on ARM targets you think? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash

Re: [Openocd-development] [PATCH] Get register value if it's invalid in cache

2011-05-03 Thread Jie Zhang
On Tue, May 3, 2011 at 4:05 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: Start with a smoketest. Would this improve performance on ARM targets you think? I'm not familiar with ARM targets. So I'm not very sure. My guess is this can also improve performance on ARM targets but they needs be

Re: [Openocd-development] [PATCH] Get register value if it's invalid in cache

2011-05-03 Thread Øyvind Harboe
I'm working on Blackfin. Nice! The blackfin guys have put a lot of effort into uClinux as I could tell from my work with Nios Linux. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html

Re: [Openocd-development] [PATCH] Get register value if it's invalid in cache

2011-05-03 Thread Mathias K.
I think gdb will get the register list and then, maybe depending on used debug application, all register values. But we should remember that some/all functions in the current implementation, that need a target register to work, simple doesn't check if a register already stored or not. They

Re: [Openocd-development] [PATCH] Get register value if it's invalid in cache

2011-05-03 Thread Mathias K.
Am 03.05.2011 22:12, schrieb Jie Zhang: I'm not familiar with ARM targets. So I'm not very sure. My guess is this can also improve performance on ARM targets but they needs be adapted to this lazy read usage. Your blackfin is fast enough. This read usage only affect you if you rape the step

Re: [Openocd-development] [PATCH] Get register value if it's invalid in cache

2011-05-03 Thread Jie Zhang
On Tue, May 3, 2011 at 4:18 PM, Mathias K. kes...@freenet.de wrote: I think gdb will get the register list and then, maybe depending on used debug application, all register values. This is true for recent GDB versions. Unfortunately, we are still using an old version, 6.6, which uses packet

Re: [Openocd-development] [PATCH] Get register value if it's invalid in cache

2011-05-03 Thread Jie Zhang
On Tue, May 3, 2011 at 4:48 PM, Mathias K. kes...@freenet.de wrote: Am 03.05.2011 22:12, schrieb Jie Zhang: I'm not familiar with ARM targets. So I'm not very sure. My guess is this can also improve performance on ARM targets but they needs be adapted to this lazy read usage. Your blackfin