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/alu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qtmips_machine/alu.cpp') 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)); -- cgit v1.2.3