diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-08 20:40:08 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-08 20:40:08 +0100 |
commit | 737fc7e309ff02c4bb02568fec82cb8215d7bb99 (patch) | |
tree | 57e0c4fe8d64774f5b1c36f88b15ff08bdf54fd5 /qtmips_machine/core.h | |
parent | c22e9cb1e18f35d02eb76b4f03a319a673168285 (diff) | |
download | qtmips-737fc7e309ff02c4bb02568fec82cb8215d7bb99.tar.gz qtmips-737fc7e309ff02c4bb02568fec82cb8215d7bb99.tar.bz2 qtmips-737fc7e309ff02c4bb02568fec82cb8215d7bb99.zip |
Minimal implementation of RDHWR to support dummy TLS region.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/core.h')
-rw-r--r-- | qtmips_machine/core.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/qtmips_machine/core.h b/qtmips_machine/core.h index 8f3acec..3303438 100644 --- a/qtmips_machine/core.h +++ b/qtmips_machine/core.h @@ -69,7 +69,8 @@ public: class Core : public QObject { Q_OBJECT public: - Core(Registers *regs, MemoryAccess *mem_program, MemoryAccess *mem_data); + Core(Registers *regs, MemoryAccess *mem_program, MemoryAccess *mem_data, + unsigned int min_cache_row_size = 1); void step(); // Do single step void reset(); // Reset core (only core, memory and registers has to be reseted separately) @@ -230,7 +231,9 @@ protected: void dtMemoryInit(struct dtMemory &dt); private: - unsigned cycle_c; + unsigned int cycle_c; + unsigned int min_cache_row_size; + std::uint32_t hwr_user_local; }; class CoreSingle : public Core { |