aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/qtmipsmachine.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-05 16:29:58 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-05 16:30:23 +0100
commit799dcddc2420ce1450ac2bdd0d69bccf4a2f2e1f (patch)
treedd7591e0c6e5eaaf3e59fc047b6295310c72ee92 /qtmips_machine/qtmipsmachine.h
parentfac2c49643ee5122fbeffaeaebbac48e69381bf3 (diff)
downloadqtmips-799dcddc2420ce1450ac2bdd0d69bccf4a2f2e1f.tar.gz
qtmips-799dcddc2420ce1450ac2bdd0d69bccf4a2f2e1f.tar.bz2
qtmips-799dcddc2420ce1450ac2bdd0d69bccf4a2f2e1f.zip
Copy machineconfig in QtMipsMachine
Diffstat (limited to 'qtmips_machine/qtmipsmachine.h')
-rw-r--r--qtmips_machine/qtmipsmachine.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/qtmips_machine/qtmipsmachine.h b/qtmips_machine/qtmipsmachine.h
index d2e60de..d130225 100644
--- a/qtmips_machine/qtmipsmachine.h
+++ b/qtmips_machine/qtmipsmachine.h
@@ -18,6 +18,7 @@ class QtMipsMachine : public QObject {
public:
QtMipsMachine(const MachineConfig &cc);
+ const MachineConfig &config();
void set_speed(unsigned);
const Registers *registers();
@@ -49,19 +50,17 @@ signals:
void tick(); // Time tick
private:
+ MachineConfig mcnf;
+
Registers *regs;
Memory *mem, *mem_program_only;
Cache *cch;
Core *cr;
- bool cr_pipelined;
-
- unsigned run_speed;
QTimer *run_t;
std::uint32_t program_end;
enum Status stat;
-
void set_status(enum Status st);
};