aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-04-01 15:25:52 +0200
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-04-01 15:25:52 +0200
commit1afbebb7748f44f05ae76539a4d2f382a371ff00 (patch)
treebbaf3a78a3f89f2e2b98929af2fe5ca2d5749e51 /qtmips_machine
parent1475013c743058a5b111d75b8e9115a996ead907 (diff)
downloadqtmips-1afbebb7748f44f05ae76539a4d2f382a371ff00.tar.gz
qtmips-1afbebb7748f44f05ae76539a4d2f382a371ff00.tar.bz2
qtmips-1afbebb7748f44f05ae76539a4d2f382a371ff00.zip
Coreview multiplexers updated and added for branch compare forward.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine')
-rw-r--r--qtmips_machine/core.cpp1
-rw-r--r--qtmips_machine/core.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/qtmips_machine/core.cpp b/qtmips_machine/core.cpp
index dead427..9e285a4 100644
--- a/qtmips_machine/core.cpp
+++ b/qtmips_machine/core.cpp
@@ -548,6 +548,7 @@ void Core::writeback(const struct dtMemory &dt) {
emit writeback_inst_addr_value(dt.is_valid? dt.inst_addr: STAGEADDR_NONE);
emit instruction_writeback(dt.inst, dt.inst_addr, dt.excause, dt.is_valid);
emit writeback_value(dt.towrite_val);
+ emit writeback_memtoreg_value(dt.memtoreg);
emit writeback_regw_value(dt.regwrite);
emit writeback_regw_num_value(dt.rwrite);
if (dt.regwrite)
diff --git a/qtmips_machine/core.h b/qtmips_machine/core.h
index 86adcfa..8672850 100644
--- a/qtmips_machine/core.h
+++ b/qtmips_machine/core.h
@@ -158,6 +158,7 @@ signals:
void memory_excause_value(std::uint32_t);
void writeback_inst_addr_value(std::uint32_t);
void writeback_value(std::uint32_t);
+ void writeback_memtoreg_value(std::uint32_t);
void writeback_regw_value(std::uint32_t);
void writeback_regw_num_value(std::uint32_t);