aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/machineconfig.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-07-18 00:30:35 +0200
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-07-18 00:30:35 +0200
commitfab8cb529772dee9a3e28d471cf82796f0ce257d (patch)
tree20c7debc85da50af218bbabe18769dfcbe456684 /qtmips_machine/machineconfig.h
parent2a996467f9ca00e8eee24376b31b9cb919f7fbf7 (diff)
downloadqtmips-fab8cb529772dee9a3e28d471cf82796f0ce257d.tar.gz
qtmips-fab8cb529772dee9a3e28d471cf82796f0ce257d.tar.bz2
qtmips-fab8cb529772dee9a3e28d471cf82796f0ce257d.zip
Add config option to reset machine before internal assembler starts.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/machineconfig.h')
-rw-r--r--qtmips_machine/machineconfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qtmips_machine/machineconfig.h b/qtmips_machine/machineconfig.h
index 987f3aa..bcd5b76 100644
--- a/qtmips_machine/machineconfig.h
+++ b/qtmips_machine/machineconfig.h
@@ -134,6 +134,8 @@ public:
void set_osemu_interrupt_stop(bool);
void set_osemu_exception_stop(bool);
void set_osemu_fs_root(QString v);
+ // reset machine befor internal compile/reload after external make
+ void set_reset_at_compile(bool);
// Set path to source elf file. This has to be set before core is initialized.
void set_elf(QString path);
// Configure cache
@@ -154,6 +156,7 @@ public:
bool osemu_interrupt_stop() const;
bool osemu_exception_stop() const;
QString osemu_fs_root() const;
+ bool reset_at_compile() const;
QString elf() const;
const MachineConfigCache &cache_program() const;
const MachineConfigCache &cache_data() const;
@@ -171,6 +174,7 @@ private:
unsigned mem_acc_read, mem_acc_write, mem_acc_burst;
bool osem_enable, osem_known_syscall_stop, osem_unknown_syscall_stop;
bool osem_interrupt_stop, osem_exception_stop;
+ bool res_at_compile;
QString osem_fs_root;
QString elf_path;
MachineConfigCache cch_program, cch_data;