- 25 Mar, 2010 4 commits
-
-
Daniel Bäder authored
-
Øyvind Harboe authored
For testing and checking the build this can be useful, it doesn't have any practical application outside development. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Antonio Borneo authored
Remove unused function Signed-off-by:
Antonio Borneo <borneo.antonio@gmail.com>
-
Antonio Borneo authored
Add "static" qualifier to private functions. Signed-off-by:
Antonio Borneo <borneo.antonio@gmail.com>
-
- 24 Mar, 2010 3 commits
-
-
David Brownell authored
The init cleanup patch overlooked a message which was wrongly specific to the "usbjtag" layout. Fix. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Antonio Borneo authored
Remove unused function Signed-off-by:
Antonio Borneo <borneo.antonio@gmail.com>
-
Antonio Borneo authored
Add "static" qualifier to private functions and data. Signed-off-by:
Antonio Borneo <borneo.antonio@gmail.com>
-
- 22 Mar, 2010 4 commits
-
-
Øyvind Harboe authored
Introduced & corrected since 0.4. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Mike Dunn authored
This patch fixes xscale software breakpoints by cleaning the dcache and invalidating the icache after the bkpt instruction is inserted or removed. The icache operation is necessary in order to flush the fetch buffers, even if the icache is disabled (see section 4.2.7 of the xscale core developer's manual). The dcache is presumed to be enabled; no harm done if not. The dcache is also invalidated after cleaning in order to safeguard against a future load of invalid data, in the event that cache_clean_address points to memory that is valid and in use. Also corrected a confusing typo I noticed in a comment. TODO (or not TODO...?): the xscale's 2K "mini dcache" is not cleaned. This cache is not used unless the 'X' bit in the page table entry is set. This is a proprietary xscale extension to the ARM architecture. If a target's OS or executive makes use of this for memory regions holding code, the breakpoint problem will persist. Flushing the mini dcache requires that 2K of valid cacheable memory (mapped with 'X' bit set) be designated by the user for this purpose. The debug handler that gets downloaded to the target will also need to be extended.
-
Øyvind Harboe authored
This was an easy one. Just add the missing "const" to a local variable definition. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
David Brownell authored
In the ft2232 driver, initialization for many layouts punts to a routine called usbjtag_init(), instead of a routine specific to each layout. That routine is a mess built around a "what type layout am I" core. That's a bad design ... in this case, especially so, since it bypasses the layout-specific dispatch which was just done, and obfuscates the initialization which is at least somewhat generic, instead of being specific to the "usbjtag" layout. Split and document out the generic parts of usbjtag_init(), and make the rest of those layouts have layout-specific init methods. Also, rename usbjtag_reset() ... that also was not specific to the "usbjtag" layout, and thus contributed to the previous code structure confusion. (Eventually, all layout-specific code (and method tables) should probably live in files specific to each layout. These changes will facilitate those and other cleanups to this driver.) Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
- 21 Mar, 2010 2 commits
-
-
Øyvind Harboe authored
the handling of caches, should be moved into the breakpoint specific callbacks rather than being plonked into generic memory write fn's. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
Tightens up the jtag_add_xxx_scan() API Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 20 Mar, 2010 1 commit
-
-
Øyvind Harboe authored
These were relatively straightforward fixes which are backwards compatible. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 19 Mar, 2010 9 commits
-
-
David Brownell authored
Note that the FT4232 chips have four channels not two, and Elaborate on uses of the additional channels. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Øyvind Harboe authored
The implementation is now more straightforward as the scan_fields have been greatly simplified over time. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
Introduced in latest commits, found by code inspection & GCC warning. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
Voila! This get rids of mysteries about what what state the TAP is in. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
Code inspection indicated what constant end states to use. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
By code inspection. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
By code inspection. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
By a bit of code inspection it seems like all of these instances of jtag_get_end_state() can be unambigously replaced by constants. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Mike Dunn authored
Fix problem with the xscale icache and dcache commands. Both commands were enabling or disabling the mmu, not the caches I didn't look any further after my earlier patch fixed the trivial problem with command argument parsing. Turns out the underlying code was broken. The resolution is straightforward when you look at the arguments to xscale_enable_mmu_caches() and xscale_disable_mmu_caches(). I finally took a deeper look after dumping the cp15 control register (XSCALE_CTRL) and seeing that the cache bits weren't changing, but the mmu bit was (which caused all manner of grief, as you can imagine). This has been tested and works OK now. src/target/xscale.c | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
- 18 Mar, 2010 10 commits
-
-
David Brownell authored
So don't use the name "swjdp" for all DAPs; rename to plain old "dap", which *is* always correct. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Not sure how the original "move code to adi_v5_swd.c" patch left some code in the "arm_adi_v5.c" file, but a recent patch was only a partial fix -- it didn't remove all the duplication. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Øyvind Harboe authored
Less global variables.... Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Spencer Oliver authored
- include the $_FLASHNAME in all flash bank examples. Signed-off-by:
Spencer Oliver <ntfreak@users.sourceforge.net>
-
Spencer Oliver authored
'unlock' performs a full unlock/erase of the device, removing any code protection. Signed-off-by:
Spencer Oliver <ntfreak@users.sourceforge.net>
-
Spencer Oliver authored
This arg was never used and was just taken from the arm jtag code. Signed-off-by:
Spencer Oliver <ntfreak@users.sourceforge.net>
-
Øyvind Harboe authored
jtag_get/set_end_state() is now deprecated. There were lots of places in the code where the end state was unintentionally modified. The big Q is whether there were any places where the intention was to modify the end state. 0.5 is a long way off, so we'll get a fair amount of testing. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
A fn was copied instead of moved to a new file. The linker can discard exact copies of fn's without warning. This is a C++'ism. However on my Ubuntu 9.10 machine, it fails. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 17 Mar, 2010 7 commits
-
-
Øyvind Harboe authored
Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
invoke keep_alive() to make sure that the default 2000ms timeout does not trigger. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
- incorrect parsing of arguments - mdX didn't display arguments correctly I don't think anyone ever used that code path :-) Did you know that "target mdw" and mdw are very different? for {set i 0} {$i < 256} {set i [expr $i+1]} {mwb [expr 0x2000000+$i] $i} mdw 0x2000000 0x10 0x02000000: 03020100 07060504 0b0a0908 0f0e0d0c 13121110 17161514 1b1a1918 1f1e1d1c 0x02000020: 23222120 27262524 2b2a2928 2f2e2d2c 33323130 37363534 3b3a3938 3f3e3d3c > zy1000.cpu mdb 0x2000000 0x20 0x02000000 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................ 0x02000010 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f ................ > zy1000.cpu mdh 0x2000000 0x20 0x02000000 0100 0302 0504 0706 0908 0b0a 0d0c 0f0e ................ 0x02000010 1110 1312 1514 1716 1918 1b1a 1d1c 1f1e ................ 0x02000020 2120 2322 2524 2726 2928 2b2a 2d2c 2f2e !"#$%&'()*+,-./ 0x02000030 3130 3332 3534 3736 3938 3b3a 3d3c 3f3e 0123456789:;<=>? > zy1000.cpu mdw 0x2000000 0x20 0x02000000 03020100 07060504 0b0a0908 0f0e0d0c ................ 0x02000010 13121110 17161514 1b1a1918 1f1e1d1c ................ 0x02000020 23222120 27262524 2b2a2928 2f2e2d2c !"#$%&'()*+,-./ 0x02000030 33323130 37363534 3b3a3938 3f3e3d3c 0123456789:;<=>? 0x02000040 43424140 47464544 4b4a4948 4f4e4d4c @ABCDEFGHIJKLMNO 0x02000050 53525150 57565554 5b5a5958 5f5e5d5c PQRSTUVWXYZ[\]^_ 0x02000060 63626160 67666564 6b6a6968 6f6e6d6c `abcdefghijklmno 0x02000070 73727170 77767574 7b7a7978 7f7e7d7c pqrstuvwxyz{|}~. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Spencer Oliver authored
Add a add_script_search_dir cmd so that adding search dir's can be added to cfg scripts. Signed-off-by:
Spencer Oliver <ntfreak@users.sourceforge.net>
-
Spencer Oliver authored
The PIC32MX does not support the ejtag software reset - it is optional in the ejtag spec. We perform the equivalent using the microchip specific MTAP cmd's. Signed-off-by:
Spencer Oliver <ntfreak@users.sourceforge.net>
-
Spencer Oliver authored
The mips_m4k_assert_reset has now been restructured so the variant ejtag_srst is not required anymore. The ejtag software reset will be used if the target does not have srst connected. Remove ejtag_srst from docs. Signed-off-by:
Spencer Oliver <ntfreak@users.sourceforge.net>
-