Re: [Openocd-development] Set of MIPS patches (big endian, FASTDATA, error propagation, optimizations...)

2011-04-05 Thread Andrew Lyon
On Mon, Apr 4, 2011 at 7:54 PM, Andrew Lyon wrote: > On Mon, Apr 4, 2011 at 6:51 PM, Øyvind Harboe wrote: >> Any objections to merging 1,2 and 4? >> >> I think #3 needs more discussion or cool-off. My objection is >> that we don't know why this makes things bet

Re: [Openocd-development] Set of MIPS patches (big endian, FASTDATA, error propagation, optimizations...)

2011-04-04 Thread Andrew Lyon
, Apr 4, 2011 at 8:21 PM, Drasko DRASKOVIC wrote: > Does the patch #3 remove these warnings for you ? > > On Mon, Apr 4, 2011 at 6:02 PM, Andrew Lyon wrote: >> On Mon, Apr 4, 2011 at 4:55 PM, Drasko DRASKOVIC >> wrote: >>> Hi Andy, >>> thanks a lot for these te

Re: [Openocd-development] Set of MIPS patches (big endian, FASTDATA, error propagation, optimizations...)

2011-04-04 Thread Andrew Lyon
On Mon, Apr 4, 2011 at 6:51 PM, Øyvind Harboe wrote: > Any objections to merging 1,2 and 4? > > I think #3 needs more discussion or cool-off. My objection is > that we don't know why this makes things better and it certainly > seems to hit performance hard. > > > -- > Øyvind Harboe > > Can Zylin C

Re: [Openocd-development] Set of MIPS patches (big endian, FASTDATA, error propagation, optimizations...)

2011-04-04 Thread Andrew Lyon
ft2232_execute_scan(): ft2232 buffer size reached, sending queued commands (first_unsent: 0xb743dfac, cmd: 0xb7344f28) User : 406 778687 command.c:557 command_print(): 109628 bytes written at address 0xa040 Andy > > On Mon, Apr 4, 2011 at 5:50 PM, Andrew Lyon wrote: >> On Mon, Apr

Re: [Openocd-development] Set of MIPS patches (big endian, FASTDATA, error propagation, optimizations...)

2011-04-04 Thread Andrew Lyon
d 109628 bytes in 3.101150s (34.522 KiB/s) downloaded 109628 bytes in 1.105152s (96.872 KiB/s) downloaded 109628 bytes in 1.102143s (97.137 KiB/s) downloaded 109628 bytes in 1.101120s (97.227 KiB/s) Andy > BR, > Drasko > > On Mon, Apr 4, 2011 at 5:06 PM, Andrew Lyon wrote: >> On

Re: [Openocd-development] Set of MIPS patches (big endian, FASTDATA, error propagation, optimizations...)

2011-04-04 Thread Andrew Lyon
On Mon, Apr 4, 2011 at 2:51 PM, Drasko DRASKOVIC wrote: > Hi all, > here is a set of patched (separeted by the logical changes they > introduce) that : > 1) Correct endianess for big endian targets > 2) Correct while(1) loop waiting for PrAcc to be "1" > 3) Change FASTDATA operation, forcing the s

Re: [Openocd-development] ft2232 jtag mips performance

2011-03-31 Thread Andrew Lyon
On Wed, Mar 30, 2011 at 4:37 PM, Drasko DRASKOVIC wrote: > Hi all, > I would like to ask again for the problems noted below. > > If it seems reasonable from the maintainers point of view, I'll > prepare the patch. > > Otherwise I'll keep the implementation just for me, as the existing > solution s

[Openocd-development] mips breakpoints

2011-03-29 Thread Andrew Lyon
Hi, Any ideas why (software) breakpoints don't appear to work on mips? I have bigendian mips cpu which appears to not have hardware breakpoints, to test software bp I step into and through some code (uboot) to identify how the code runs, then set bp at address already seen when stepping, finally

Re: [Openocd-development] bugfix for step mips_m4k

2011-03-29 Thread Andrew Lyon
On Tue, Mar 29, 2011 at 9:28 AM, Øyvind Harboe wrote: > Hi, > > I wasn't able to apply your patch. > > Is the attached patch correct? > > > > > -- > Ø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

Re: [Openocd-development] bugfix for step mips_m4k

2011-03-28 Thread Andrew Lyon
On Mon, Mar 28, 2011 at 11:31 AM, Øyvind Harboe wrote: > Any objections to committing? > > Could you also list the necessary patches here? > > > Thanks! > > > -- > Øyvind Harboe > > Can Zylin Consulting help on your project? > > US toll free 1-866-980-3434 / International +47 51 87 40 27 > > http:

[Openocd-development] bugfix for step mips_m4k

2011-03-28 Thread Andrew Lyon
Hi, The patch below fixes step on mips_m4k: diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c index 8afee9c..78786a5 100644 --- a/src/target/mips_m4k.c +++ b/src/target/mips_m4k.c @@ -422,6 +422,8 @@ static int mips_m4k_step(struct target *target, int current, /* current = 1: co

Re: [Openocd-development] ft2232 jtag mips performance

2011-03-25 Thread Andrew Lyon
On Fri, Mar 25, 2011 at 12:07 PM, Drasko DRASKOVIC wrote: > On Fri, Mar 25, 2011 at 1:02 PM, Andrew Lyon wrote: >> On Fri, Mar 25, 2011 at 11:40 AM, Drasko DRASKOVIC >> wrote: >>> Hi Andy, >>> thank you for these tests, it is very helpful. The problem you

Re: [Openocd-development] compile failure due to recent cortex changes

2011-03-25 Thread Andrew Lyon
On Fri, Mar 25, 2011 at 12:13 PM, Øyvind Harboe wrote: > Try: > > make distclean > sh bootstrap > ./configure --enable-maintainer-mode > > > > -- > Ø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

[Openocd-development] compile failure due to recent cortex changes

2011-03-25 Thread Andrew Lyon
Hi, The recent cortex commits cause compile to fail: make[5]: Entering directory `/usr/src/openocd-git/src/target' /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -DPKGDATADIR=\"/usr/local/share/openocd\" -I../../jimtcl -I../../j

Re: [Openocd-development] ft2232 jtag mips performance

2011-03-25 Thread Andrew Lyon
t might be something related to Amontec dongle I am using, but there > is small chance. > > Which dongle are you using ? Its a guruplug jtag module http://www.globalscaletechnologies.com/p-28-guruplug-jtag.aspx Have you tried using libftxx instead of libftdi? > > Best regards, >

Re: [Openocd-development] ft2232 jtag mips performance

2011-03-25 Thread Andrew Lyon
On Fri, Mar 25, 2011 at 10:52 AM, Andrew Lyon wrote: > On Thu, Mar 24, 2011 at 11:01 AM, Drasko DRASKOVIC > wrote: >> Hi Andy, >> I am very surprised that OpenOCD works for big endian MIPS. >> >> I am currently working on this and I am preparing the patch that

Re: [Openocd-development] ft2232 jtag mips performance

2011-03-25 Thread Andrew Lyon
080 4000 4000 If I load a smaller image which does not use fastdata then it reads back exactly the same as it was written, but clearly in memory it is bitswapped. Andy > > If this does not work, you can forget any debugging... > > Best regards, > Drasko > > On Thu, Ma

Re: [Openocd-development] ft2232 jtag mips performance

2011-03-24 Thread Andrew Lyon
y > > BR, > Drasko > > On Tue, Mar 22, 2011 at 2:20 PM, Andrew Lyon wrote: >> Hi, >> >> I am using a ft2232 based jtag device with a mips board and the >> performance is really terrible: >> >> 57344 bytes in 3119.897949s (0.018 kb/s) >> >

[Openocd-development] ft2232 jtag mips performance

2011-03-22 Thread Andrew Lyon
Hi, I am using a ft2232 based jtag device with a mips board and the performance is really terrible: 57344 bytes in 3119.897949s (0.018 kb/s) It seems to work ok in that I can halt, resume, read/write memory etc, but every operation is very slow, halting takes almost 3 seconds. I pulled the code