diff options
Diffstat (limited to 'qtmips_machine/qtmipsmachine.cpp')
-rw-r--r-- | qtmips_machine/qtmipsmachine.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/qtmips_machine/qtmipsmachine.cpp b/qtmips_machine/qtmipsmachine.cpp index a652363..744c5e2 100644 --- a/qtmips_machine/qtmipsmachine.cpp +++ b/qtmips_machine/qtmipsmachine.cpp @@ -3,7 +3,7 @@ using namespace machine; -QtMipsMachine::QtMipsMachine(const MachineConfig &cc) { +QtMipsMachine::QtMipsMachine(const MachineConfig &cc) : QObject(), mcnf(&cc) { stat = ST_READY; ProgramLoader program(cc.elf()); @@ -29,7 +29,6 @@ QtMipsMachine::QtMipsMachine(const MachineConfig &cc) { throw QTMIPS_EXCEPTION(Sanity, "Trying to configure unknown cache type", ""); } - cr_pipelined = cc.pipelined(); if (cc.pipelined()) cr = new CorePipelined(regs, coremem); else @@ -40,6 +39,10 @@ QtMipsMachine::QtMipsMachine(const MachineConfig &cc) { connect(run_t, SIGNAL(timeout()), this, SLOT(step())); } +const MachineConfig &QtMipsMachine::config() { + return mcnf; +} + void QtMipsMachine::set_speed(unsigned val) { run_t->setInterval(val); } |