From 69aaf6837c9a1da2fea8961159d574023f0c7a6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 14 Apr 2018 11:18:09 +0200 Subject: Disable program follow This should be easy enought to program but it requires some deeper changes to memoryview it self (to allows direct address to item mapping). Because of that I am disabling it for now and I will return to this feature in future. For now I am focusing on other more important aspects of qtmips (to make it feature complete not nice to use). --- qtmips_gui/programdock.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qtmips_gui') diff --git a/qtmips_gui/programdock.cpp b/qtmips_gui/programdock.cpp index 974e5ad..de24910 100644 --- a/qtmips_gui/programdock.cpp +++ b/qtmips_gui/programdock.cpp @@ -2,6 +2,7 @@ #include "qtmipsexception.h" ProgramView::ProgramView(QWidget *parent) : MemoryView(parent) { + /* cb_single = new QComboBox(this); cb_single->addItems({ "Don't follow", @@ -25,6 +26,7 @@ ProgramView::ProgramView(QWidget *parent) : MemoryView(parent) { cb_pipelined->setCurrentIndex(1); layout->addWidget(cb_pipelined); connect(cb_pipelined, SIGNAL(currentIndexChanged(int)), this, SLOT(cb_pipelined_changed(int))); + */ } void ProgramView::setup(machine::QtMipsMachine *machine) { @@ -32,6 +34,7 @@ void ProgramView::setup(machine::QtMipsMachine *machine) { if (machine == nullptr) return; + /* bool pipelined = machine->config().pipelined(); cb_single->setVisible(!pipelined); cb_pipelined->setVisible(pipelined); @@ -43,6 +46,8 @@ void ProgramView::setup(machine::QtMipsMachine *machine) { cb_pipelined->setCurrentIndex(1); } else cb_single->setCurrentIndex(cb_pipelined->currentIndex() == 0 ? 0 : 1); + // TODO connect to instructuion hooks + */ } void ProgramView::jump_to_pc(std::uint32_t addr) { -- cgit v1.2.3