- fix bug with emulated cortex_m3 dcc channel
git-svn-id: svn://svn.berlios.de/openocd/trunk@402 b42882b7-edfa-0310-969c-e2dbd0fdcd60__archive__
parent
69749dbcb3
commit
269aa8e99a
|
@ -1372,8 +1372,12 @@ int cortex_m3_dcc_read(swjdp_common_t *swjdp, u8 *value, u8 *ctrl)
|
||||||
|
|
||||||
/* write ack back to software dcc register
|
/* write ack back to software dcc register
|
||||||
* signify we have read data */
|
* signify we have read data */
|
||||||
|
if (dcrdr & (1 << 0))
|
||||||
|
{
|
||||||
dcrdr = 0;
|
dcrdr = 0;
|
||||||
ahbap_write_buf_u16( swjdp, (u8*)&dcrdr, 1, DCB_DCRDR);
|
ahbap_write_buf_u16( swjdp, (u8*)&dcrdr, 1, DCB_DCRDR);
|
||||||
|
}
|
||||||
|
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1417,6 +1421,7 @@ int cortex_m3_handle_target_request(void *priv)
|
||||||
{
|
{
|
||||||
u32 request;
|
u32 request;
|
||||||
|
|
||||||
|
/* we assume target is quick enough */
|
||||||
request = data;
|
request = data;
|
||||||
cortex_m3_dcc_read(swjdp, &data, &ctrl);
|
cortex_m3_dcc_read(swjdp, &data, &ctrl);
|
||||||
request |= (data << 8);
|
request |= (data << 8);
|
||||||
|
|
Loading…
Reference in New Issue