aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/qtmipsmachine.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-06-25 23:12:22 +0200
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-06-26 16:27:46 +0200
commit473b28e10956e022b8c809a09283f3581af917a2 (patch)
tree66d77ce5fbe7a32529d64649a2ddbf591a6f0b92 /qtmips_machine/qtmipsmachine.h
parentc446ae2c7d19341a67bbbc2582280deacddf34ce (diff)
downloadqtmips-473b28e10956e022b8c809a09283f3581af917a2.tar.gz
qtmips-473b28e10956e022b8c809a09283f3581af917a2.tar.bz2
qtmips-473b28e10956e022b8c809a09283f3581af917a2.zip
Allow to create simulator without loaded executable.
This allows to test simple instruction sequences without need to install compiler. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/qtmipsmachine.h')
-rw-r--r--qtmips_machine/qtmipsmachine.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/qtmips_machine/qtmipsmachine.h b/qtmips_machine/qtmipsmachine.h
index 5cb4100..6c0c007 100644
--- a/qtmips_machine/qtmipsmachine.h
+++ b/qtmips_machine/qtmipsmachine.h
@@ -56,7 +56,7 @@ namespace machine {
class QtMipsMachine : public QObject {
Q_OBJECT
public:
- QtMipsMachine(const MachineConfig &cc, bool load_symtab = false);
+ QtMipsMachine(const MachineConfig &cc, bool load_symtab = false, bool load_executable = true);
~QtMipsMachine();
const MachineConfig &config();
@@ -75,6 +75,7 @@ public:
const Core *core();
const CoreSingle *core_singe();
const CorePipelined *core_pipelined();
+ bool executable_loaded() const;
enum Status {
ST_READY, // Machine is ready to be started or step to be called