aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/alu.cpp
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-08 20:40:08 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-08 20:40:08 +0100
commit737fc7e309ff02c4bb02568fec82cb8215d7bb99 (patch)
tree57e0c4fe8d64774f5b1c36f88b15ff08bdf54fd5 /qtmips_machine/alu.cpp
parentc22e9cb1e18f35d02eb76b4f03a319a673168285 (diff)
downloadqtmips-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/alu.cpp')
-rw-r--r--qtmips_machine/alu.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qtmips_machine/alu.cpp b/qtmips_machine/alu.cpp
index 2ac27a5..ad0e3c9 100644
--- a/qtmips_machine/alu.cpp
+++ b/qtmips_machine/alu.cpp
@@ -134,7 +134,9 @@ std::uint32_t machine::alu_operate(enum AluOp operation, std::uint32_t s, std::u
return t;
case ALU_OP_BREAK:
return 0;
- case ALU_OP_SYSCALL: // Pass s argument without change for JAL
+ case ALU_OP_SYSCALL:
+ return 0;
+ case ALU_OP_RDHWR:
return 0;
default:
throw QTMIPS_EXCEPTION(UnsupportedAluOperation, "Unknown ALU operation", QString::number(operation, 16));