Add optional "Named state" for stage info
MODIFY
src/processors/interface/ripesprocessor.h
src/processors/interface/ripesprocessor.h
@@ -21,6 +21,7 @@ struct StageInfo {
AInt pc = 0;
bool stage_valid = false;
State state;
+ QString namedState = "";
bool operator==(const StageInfo& other) const {
return this->pc == other.pc && this->stage_valid == other.stage_valid && this->state == other.state;
}

MODIFY
src/programviewer.cpp
src/programviewer.cpp
@@ -115,7 +115,11 @@ void ProgramViewer::updateHighlightedAddresses() {
continue;
// Record the stage name for the highlighted block for later painting
- m_highlightedBlocksText[block] << ProcessorHandler::getProcessor()->stageName(sid);
+ QString stageString = ProcessorHandler::getProcessor()->stageName(sid);
+ if (!stageInfo.namedState.isEmpty()) {
+ stageString += " (" + stageInfo.namedState + ")";
+ }
+ m_highlightedBlocksText[block] << stageString;
// If a stage has already been highlighted (ie. an instruction exists in more than 1 stage at once), keep
// the already set highlighting.

Add optional "Named state" for stage info