aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/machineconfig.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-03 17:52:45 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-03 17:52:45 +0100
commit08d7e3dabd81e9d6e4f73aa5889a1d709242177c (patch)
tree1ad8277b3be1534f3d2a451e6c4fe659f9d9cb24 /qtmips_machine/machineconfig.h
parent4a40dddda4d3839814be2f00fb9a62f95b1b3f21 (diff)
downloadqtmips-08d7e3dabd81e9d6e4f73aa5889a1d709242177c.tar.gz
qtmips-08d7e3dabd81e9d6e4f73aa5889a1d709242177c.tar.bz2
qtmips-08d7e3dabd81e9d6e4f73aa5889a1d709242177c.zip
Allow delay slot disable for non-pipelined core
Diffstat (limited to 'qtmips_machine/machineconfig.h')
-rw-r--r--qtmips_machine/machineconfig.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/qtmips_machine/machineconfig.h b/qtmips_machine/machineconfig.h
index 8e58d12..d872686 100644
--- a/qtmips_machine/machineconfig.h
+++ b/qtmips_machine/machineconfig.h
@@ -20,8 +20,8 @@ public:
// In default disabled.
void set_pipelined(bool);
// Configure if we want to do jump prediction
- // In default disabled. When enabled it also automatically enables pipelining
- void set_jump_prediction(bool);
+ // In default enabled. When disabled it also automatically disables pipelining.
+ void set_delay_slot(bool);
// Configure cache type
// In default CCT_NONE is used.
void set_cache(enum CacheType);
@@ -29,12 +29,12 @@ public:
void set_elf(QString path);
bool pipelined() const;
- bool jump_prediction() const;
+ bool delay_slot() const;
enum CacheType cache() const;
QString elf() const;
private:
- bool pipeline, jumppred;
+ bool pipeline, delayslot;
enum CacheType cache_type;
QString elf_path;
};