openocd: add cycle counter for trace timestamp

Added performance monitor hw-function cycle count.
Also fix for single-stepping exit, some additional register
exits and prevention of reboot failures.

Change-Id: I74196905dc39ecc14ae78366e7e1cb70ec7092f1
This commit is contained in:
Lars Rademacher
2013-10-30 13:08:14 +01:00
parent 1feab4fd54
commit 809af0ae55
4 changed files with 253 additions and 47 deletions

View File

@ -21,6 +21,13 @@ struct halt_condition {
uint32_t addr_len;
};
/*
* Read value of cycle counter (performance monitor)
*
* @returns Value of current cycle counter
*/
uint64_t oocdw_read_cycle_counter();
/*
* Read register value
* Reads the value of the register defined by \a regnum.
@ -58,7 +65,7 @@ void oocdw_delete_halt_condition(struct halt_condition *hc);
/*
* Immediate target halt without sepcific target instruction
*/
void oocdw_halt_target();
bool oocdw_halt_target();
/*
* Target reboot