From e724c19a26abbcf4b9c84ddead13751f61b74a99 Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Tue, 18 Oct 2011 12:24:44 +1300 Subject: [PATCH] tilib: breakpoints are now working. --- drivers/tilib.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/tilib.c b/drivers/tilib.c index 2aa949a..0b57761 100644 --- a/drivers/tilib.c +++ b/drivers/tilib.c @@ -118,7 +118,7 @@ static uint32_t event_fetch(struct tilib_device *dev) dev->mailbox = 0; threads_lock_release(&dev->mb_lock); - return 0; + return ret; } static void *get_func(dynload_handle_t hnd, const char *name) @@ -315,6 +315,20 @@ static int refresh_bps(struct tilib_device *dev) if (bp->flags & DEVICE_BP_ENABLED) { param.bpMode = BP_CODE; param.lAddrVal = bp->addr; + param.bpType = BP_MAB; + param.lReg = 0; /* not used */ + param.bpAccess = BP_FETCH; + param.bpAction = BP_BRK; + param.bpOperat = BP_EQUAL; + param.lMask = 0; /* what's this? */ + param.lRangeEndAdVa = 0; /* not used */ + param.bpRangeAction = 0; /* not used */ + param.bpCondition = BP_NO_COND; + param.lCondMdbVal = 0; + param.bpCondAccess = BP_FETCH; + param.lCondMask = 0; /* what's this? */ + param.bpCondOperat = BP_EQUAL; + param.wExtCombine = 0; /* not used? */ } else { param.bpMode = BP_CLEAR; }