target: fix typos
Change-Id: Icdb517224e8bcf41a16498088e09955048077d35 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/1864 Tested-by: jenkins Reviewed-by: Bill Traynor <btraynor@gmail.com> Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
This commit is contained in:
parent
c46dd490d1
commit
009f5c2af0
|
@ -165,7 +165,6 @@ static void etb_getbuf(jtag_callback_data_t arg)
|
||||||
*((uint32_t *)arg) = buf_get_u32(in, 0, 32);
|
*((uint32_t *)arg) = buf_get_u32(in, 0, 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int etb_read_ram(struct etb *etb, uint32_t *data, int num_frames)
|
static int etb_read_ram(struct etb *etb, uint32_t *data, int num_frames)
|
||||||
{
|
{
|
||||||
struct scan_field fields[3];
|
struct scan_field fields[3];
|
||||||
|
@ -193,7 +192,7 @@ static int etb_read_ram(struct etb *etb, uint32_t *data, int num_frames)
|
||||||
jtag_add_dr_scan(etb->tap, 3, fields, TAP_IDLE);
|
jtag_add_dr_scan(etb->tap, 3, fields, TAP_IDLE);
|
||||||
|
|
||||||
for (i = 0; i < num_frames; i++) {
|
for (i = 0; i < num_frames; i++) {
|
||||||
/* ensure nR/W reamins set to read */
|
/* ensure nR/W remains set to read */
|
||||||
buf_set_u32(&temp2, 0, 1, 0);
|
buf_set_u32(&temp2, 0, 1, 0);
|
||||||
|
|
||||||
/* address remains set to 0x4 (RAM data) until we read the last frame */
|
/* address remains set to 0x4 (RAM data) until we read the last frame */
|
||||||
|
@ -442,7 +441,7 @@ static const struct command_registration etb_command_handlers[] = {
|
||||||
{
|
{
|
||||||
.name = "etb",
|
.name = "etb",
|
||||||
.mode = COMMAND_ANY,
|
.mode = COMMAND_ANY,
|
||||||
.help = "Emebdded Trace Buffer command group",
|
.help = "Embedded Trace Buffer command group",
|
||||||
.chain = etb_config_command_handlers,
|
.chain = etb_config_command_handlers,
|
||||||
},
|
},
|
||||||
COMMAND_REGISTRATION_DONE
|
COMMAND_REGISTRATION_DONE
|
||||||
|
|
|
@ -931,7 +931,7 @@ static int etmv1_analyze_trace(struct etm_context *ctx, struct command_context *
|
||||||
* and a new branch was encountered in cycle ctx->pipe_index + retval;
|
* and a new branch was encountered in cycle ctx->pipe_index + retval;
|
||||||
*/
|
*/
|
||||||
LOG_WARNING(
|
LOG_WARNING(
|
||||||
"abandoned branch encountered, correctnes of analysis uncertain");
|
"abandoned branch encountered, correctness of analysis uncertain");
|
||||||
ctx->pipe_index += retval;
|
ctx->pipe_index += retval;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -990,12 +990,12 @@ static int etmv1_analyze_trace(struct etm_context *ctx, struct command_context *
|
||||||
|
|
||||||
/* if we got here the branch was a normal PC change
|
/* if we got here the branch was a normal PC change
|
||||||
* (or a periodic synchronization point, which means the same for that matter)
|
* (or a periodic synchronization point, which means the same for that matter)
|
||||||
* if we didn't accquire a complete PC continue with the next cycle
|
* if we didn't acquire a complete PC continue with the next cycle
|
||||||
*/
|
*/
|
||||||
if (!ctx->pc_ok)
|
if (!ctx->pc_ok)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* indirect branch to the exception vector means an exception occured */
|
/* indirect branch to the exception vector means an exception occurred */
|
||||||
if ((ctx->last_branch <= 0x20)
|
if ((ctx->last_branch <= 0x20)
|
||||||
|| ((ctx->last_branch >= 0xffff0000) &&
|
|| ((ctx->last_branch >= 0xffff0000) &&
|
||||||
(ctx->last_branch <= 0xffff0020))) {
|
(ctx->last_branch <= 0xffff0020))) {
|
||||||
|
@ -1024,7 +1024,7 @@ static int etmv1_analyze_trace(struct etm_context *ctx, struct command_context *
|
||||||
return retval;
|
return retval;
|
||||||
else if (retval == ERROR_TRACE_INSTRUCTION_UNAVAILABLE) {
|
else if (retval == ERROR_TRACE_INSTRUCTION_UNAVAILABLE) {
|
||||||
/* TODO: handle incomplete images
|
/* TODO: handle incomplete images
|
||||||
* for now we just quit the analsysis*/
|
* for now we just quit the analysis*/
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1195,7 +1195,7 @@ static COMMAND_HELPER(handle_etm_tracemode_command_update,
|
||||||
/* IGNORED:
|
/* IGNORED:
|
||||||
* - CPRT tracing (coprocessor register transfers)
|
* - CPRT tracing (coprocessor register transfers)
|
||||||
* - debug request (causes debug entry on trigger)
|
* - debug request (causes debug entry on trigger)
|
||||||
* - stall on FIFOFULL (preventing tracedata lossage)
|
* - stall on FIFOFULL (preventing tracedata loss)
|
||||||
*/
|
*/
|
||||||
*mode = tracemode;
|
*mode = tracemode;
|
||||||
|
|
||||||
|
@ -1347,7 +1347,7 @@ COMMAND_HANDLER(handle_etm_config_command)
|
||||||
* check whether our setting "took".
|
* check whether our setting "took".
|
||||||
*
|
*
|
||||||
* - The "clock" and "mode" bits are interpreted differently.
|
* - The "clock" and "mode" bits are interpreted differently.
|
||||||
* See ARM IHI 0014O table 2-17 for the old behavior, and
|
* See ARM IHI 0014O table 2-17 for the old behaviour, and
|
||||||
* table 2-18 for the new. With ETB it's best to specify
|
* table 2-18 for the new. With ETB it's best to specify
|
||||||
* "normal full" ...
|
* "normal full" ...
|
||||||
*/
|
*/
|
||||||
|
@ -2026,7 +2026,7 @@ const struct command_registration etm_command_handlers[] = {
|
||||||
{
|
{
|
||||||
.name = "etm",
|
.name = "etm",
|
||||||
.mode = COMMAND_ANY,
|
.mode = COMMAND_ANY,
|
||||||
.help = "Emebdded Trace Macrocell command group",
|
.help = "Embedded Trace Macrocell command group",
|
||||||
.usage = "",
|
.usage = "",
|
||||||
.chain = etm_config_command_handlers,
|
.chain = etm_config_command_handlers,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue