aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-11-05Improve cfi.c command argument parsing.Zachary T Welch1-2/+6
2009-11-05Improve avrf.c command argument parsing.Zachary T Welch1-7/+4
2009-11-05Improve orion_nand.c command argument parsing.Zachary T Welch1-1/+1
2009-11-05Improve davinci_nand.c command argument parsing.Zachary T Welch1-5/+4
2009-11-05Improve at91sam7.c command argument parsing.Zachary T Welch1-20/+24
2009-11-05Improve at91sam3.c command argument parsing.Zachary T Welch1-11/+6
2009-11-05Improve nand.c command argument parsing.Zachary T Welch1-72/+53
2009-11-05Improve flash.c command argument parsing.Zachary T Welch1-68/+51
2009-11-05Add Flash/NAND bank command argument helpers.Zachary T Welch4-0/+45
This eliminates redundant code for parsing and retreiving the bank specified from a script command argument. This patch was written to replace existing functionality; however, the parsing logic can be updated later to allow flash commands to accept bank names as well as their numbers.
2009-11-05Improve ETM tracemode update command.Zachary T Welch1-88/+84
2009-11-05Improve etm command argument parsing.Zachary T Welch1-4/+9
2009-11-05Improve trace command argument parsing.Zachary T Welch1-2/+4
2009-11-05Improve arm_adi_v5 command argument parsing.Zachary T Welch1-15/+42
2009-11-05Improve cortex_m3 command argument parsing.Zachary T Welch1-6/+2
2009-11-05Improve xscale command argument parsing.Zachary T Welch1-2/+2
2009-11-05Improve arm11 command argument parsing.Zachary T Welch1-7/+7
2009-11-05Improve arm966e command argument parsing.Zachary T Welch1-2/+4
2009-11-05Improve arm926ejs command argument parsing.Zachary T Welch1-5/+6
2009-11-05Improve arm920t command argument parsing.Zachary T Welch1-6/+12
2009-11-05Improve arm720t command argument parsing.Zachary T Welch1-2/+5
2009-11-05Improve arm7_9_common command argument parsing.Zachary T Welch1-8/+8
2009-11-05Improve armv7m command argument parsing.Zachary T Welch1-11/+20
2009-11-05Improve armv7a command argument parsing.Zachary T Welch1-5/+12
2009-11-05Improve armv4_5 command argument parsing.Zachary T Welch1-2/+2
2009-11-05Improve xscale command argument parsing.Zachary T Welch1-12/+12
2009-11-05Improve pld command argument parsing.Zachary T Welch2-6/+11
2009-11-05Update all server port command to use new helper.Zachary T Welch3-23/+5
2009-11-05Add server port command helper function.Zachary T Welch2-0/+23
2009-11-05Improve target.c command argument parsing.Zachary T Welch1-88/+36
Passes cmd_ctx into parse_load_image_command_args for reporting the parsing errors therein.
2009-11-05Improve jtag command argument parsing.Zachary T Welch6-51/+36
2009-11-05Improve debug_level command argument parsing.Zachary T Welch1-3/+1
2009-11-05Add macro for parsing numeric command arguments.Zachary T Welch1-0/+21
This helper eliminates significant amount of redundant code in command handler functions throughout the system. It wraps the lower-level parse_* macros to implement a policy for reporting parse errors to the active command context (cmd_ctx). If errors do occur, this macro causes the calling function to abort with the proper return code.
2009-11-05Add stringify macros in src/helper/types.h.Zachary T Welch1-0/+4
2009-11-05arm920t: add mrcmcr interface fn's.Øyvind Harboe1-0/+29
The arm920t has a concept of read modify write cycles that may have to be represented in the mrcmcr interface eventually. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-05arm11: check if target is halted before executing mrc/mcr commands.Øyvind Harboe1-0/+7
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-05target: fix ordering of arguments to mcr and mrc commandsØyvind Harboe1-7/+7
Now matches machine code syntax and old arm11 syntax. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-05target: check args to mrc/mcr.Øyvind Harboe1-0/+24
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-05ARM11: added mrc/mcr support to arm11 code.Øyvind Harboe2-1/+54
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-05TODO: Wrote up list of remaining tasks for target->type->mrc/mcrØyvind Harboe1-0/+6
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-05target: Only register mrc mcr commands when one of the targets support them.Øyvind Harboe1-3/+11
This avoids polluting help for targets that can never support mrc/mcr Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-05cortex_a8: add mrc mcr interface.Øyvind Harboe1-0/+29
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-05User's Guide: TAP setup tweakageDavid Brownell1-6/+14
Highlight that the "-expected-id" probably comes from vendor documentation, and that it *should* be used where possible. Don't use ircapture/irmask in examples, to help discourage use of those params when they're not required. Explain a bit better about why/when those params get used. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-05watchpoint_add() cleanupDavid Brownell4-32/+40
Fail watchpoint_add() if it's the same address but the parameters are different ... don't just assume having the same address means the same watchpoint! (Note that overlapping watchpoints aren't detected...) Handle unrecognized return codes more sanely; don't exit()! And describe command params right. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-05Cortex-M3: expose most DWT registersDavid Brownell2-21/+144
Expose most DWT registers via Tcl; there are a few more, but those are mostly for profiling along with the ITM. Having this set available enables operations which aren't possible with just the standard watchpoint operations. The cycle counter may be interesting. Turn it on after reset by setting the LSB of the dwt_ctrl register, and it counts CPU clocks. You can program the comparator 0 watchpoint to trigger on a given cycle count, rather than a data address. Likewise, comparator 1 may be able to match data values given address matches from one or two other comparators. (Not all hardware supports this capability though; try it. That is something the standard watchpoint methods should eventually handle, for the single address case.) Minor cleanup: remove needless functional indirection for exposing the v7m architctural registers. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-05Cortex-M3: minor cleanupDavid Brownell2-16/+4
There's no reason to read which interrupts are enabled from the NVIC; that state isn't used. Plus, it's highly dynamic since firmware can change it at any time; remove the support for those state records. Remove duplicate definition of DWT_CTRL address; shrink a line. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-05Cortex-M3: DWT cleanup/fixesDavid Brownell1-56/+115
Fix the watchpoint error checks, and do them in add(), not later in set() when it's mostly too late. Support the full range of watchpoint sizes (1 to 32K bytes each), and check alignments. Minor cleanup of DWT access: shrink lines, use "+" for address calculations, comment a few issues. Add debug message reporting DWT capabilities, matching the message for FBP, and some minor code and spec review comments. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-05ARMv7M: add docs, remove exportsDavid Brownell2-29/+63
Add Doxygen for the exported ARMv7-M interfaces. Make the non-exported stuff static. Remove functions and data which are now observably unused. Add comment about a small speedup that the run_algorithm() logic could use. Shrink a few too-long lines. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-05target: add target->type->has_mmu fn.Øyvind Harboe3-5/+48
improve default target->read/write_phys_memory, produce more sensible error messages if the mmu interface functions have not been implemented yet vs. will not be implemented(e.g. cortex m3). Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-05Make default implementation of mdw/mmw phys return error 'not implemented'Øyvind Harboe1-2/+14
2009-11-05target: remove unused interface fn that clutters codeØyvind Harboe16-92/+0
The quit entry point was not being invoked. Just a source of confusion at this point. XScale ran 100x reset upon quit, but that code made no sense, wasn't commented and never invoke. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>