Set rewind action enabled state based on rewindability of VSRTLWidget
MODIFY
external/VSRTL
external/VSRTL
-Subproject commit f622086c52d630e9b94b5c79d20e834c0f1f1920
+Subproject commit 6c33d63295d5c52252401180ba2b35d3388ad594

MODIFY
src/processortab.cpp
src/processortab.cpp
@@ -235,7 +235,7 @@ void ProcessorTab::enableSimulatorControls() {
m_clockAction->setEnabled(true);
m_autoClockAction->setEnabled(true);
m_runAction->setEnabled(true);
- m_reverseAction->setEnabled(true);
+ m_reverseAction->setEnabled(m_vsrtlWidget->isRewindable());
m_resetAction->setEnabled(true);
}
@@ -274,6 +274,7 @@ void ProcessorTab::clock() {
m_vsrtlWidget->clock();
m_handler.checkValidExecutionRange();
m_handler.checkBreakpoint();
+ m_reverseAction->setEnabled(m_vsrtlWidget->isRewindable());
auto pipeline = Pipeline::getPipeline();
auto state = pipeline->step();

Set rewind action enabled state based on rewindability of VSRTLWidget