implement #176 DebugPlugin.allowEBreak is now disabled until the debug bus is used.
This commit is contained in:
parent
4e41654a84
commit
bfe65da1eb
|
@ -226,6 +226,9 @@ class DebugPlugin(var debugClockDomain : ClockDomain, hardwareBreakpointCount :
|
|||
val isPipBusy = RegNext(stages.map(_.arbitration.isValid).orR || iBusFetcher.incoming())
|
||||
val godmode = RegInit(False) setWhen(haltIt && !isPipBusy)
|
||||
val haltedByBreak = RegInit(False)
|
||||
val allowEBreak = RegInit(False) setWhen(io.bus.cmd.valid)
|
||||
// val allowEBreak = if(!pipeline.serviceExist(classOf[PrivilegeService])) True else pipeline.service(classOf[PrivilegeService]).isMachine()
|
||||
|
||||
|
||||
val hardwareBreakpoints = Vec(Reg(new Bundle{
|
||||
val valid = Bool()
|
||||
|
@ -277,8 +280,6 @@ class DebugPlugin(var debugClockDomain : ClockDomain, hardwareBreakpointCount :
|
|||
}
|
||||
}
|
||||
|
||||
val allowEBreak = if(!pipeline.serviceExist(classOf[PrivilegeService])) True else pipeline.service(classOf[PrivilegeService]).isMachine()
|
||||
|
||||
decode.insert(DO_EBREAK) := !haltIt && (decode.input(IS_EBREAK) || hardwareBreakpoints.map(hb => hb.valid && hb.pc === (decode.input(PC) >> 1)).foldLeft(False)(_ || _)) && allowEBreak
|
||||
when(execute.arbitration.isValid && execute.input(DO_EBREAK)){
|
||||
execute.arbitration.haltByOther := True
|
||||
|
|
|
@ -2824,13 +2824,16 @@ public:
|
|||
socklen_t addr_size;
|
||||
char buffer[1024];
|
||||
uint32_t timeSpacer = 0;
|
||||
bool taskValid = false;
|
||||
bool taskValid;
|
||||
DebugPluginTask task;
|
||||
|
||||
|
||||
DebugPlugin(Workspace* ws){
|
||||
this->ws = ws;
|
||||
this->top = ws->top;
|
||||
taskValid = true; //true as a Workaround to enable the ebreak
|
||||
task.wr = false;
|
||||
task.address = 0;
|
||||
|
||||
#ifdef DEBUG_PLUGIN_EXTERNAL
|
||||
ws->mTimeCmp = ~0;
|
||||
|
|
Loading…
Reference in New Issue