Make cortexm_pc_write static.

This commit is contained in:
Gareth McMullin 2015-03-29 16:48:51 -07:00
parent 779dcf0f69
commit 274b818517
2 changed files with 1 additions and 9 deletions

View File

@ -24,9 +24,6 @@
* ARM doc DDI0403C.
*
* Also supports Cortex-M0 / ARMv6-M
*
* Issues:
* There are way too many magic numbers used here.
*/
#include "general.h"
#include "exception.h"
@ -421,16 +418,12 @@ static uint32_t cortexm_pc_read(target *t)
{
target_mem_write32(t, CORTEXM_DCRSR, 0x0F);
return target_mem_read32(t, CORTEXM_DCRDR);
return 0;
}
int cortexm_pc_write(target *t, const uint32_t val)
static void cortexm_pc_write(target *t, const uint32_t val)
{
target_mem_write32(t, CORTEXM_DCRDR, val);
target_mem_write32(t, CORTEXM_DCRSR, CORTEXM_DCRSR_REGWnR | 0x0F);
return 0;
}
/* The following three routines implement target halt/resume

View File

@ -148,7 +148,6 @@ void cortexm_detach(target *t);
void cortexm_halt_resume(target *t, bool step);
int cortexm_run_stub(target *t, uint32_t loadaddr,
uint32_t r0, uint32_t r1, uint32_t r2, uint32_t r3);
int cortexm_pc_write(target *t, const uint32_t val);
#endif