From 737fc7e309ff02c4bb02568fec82cb8215d7bb99 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Fri, 8 Feb 2019 20:40:08 +0100 Subject: Minimal implementation of RDHWR to support dummy TLS region. Signed-off-by: Pavel Pisa --- qtmips_machine/core.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'qtmips_machine/core.h') 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 { -- cgit v1.2.3