diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-18 20:36:06 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-18 20:36:06 +0100 |
commit | 1ef78a15bdac490cf5e0b74fcde8539719f4bfe6 (patch) | |
tree | 871d3ebed7c7e3472d7d2614809d25afa95ad3fb | |
parent | 3183ea5cd878570f4d6cef924369f0a4611a5c99 (diff) | |
download | qtmips-1ef78a15bdac490cf5e0b74fcde8539719f4bfe6.tar.gz qtmips-1ef78a15bdac490cf5e0b74fcde8539719f4bfe6.tar.bz2 qtmips-1ef78a15bdac490cf5e0b74fcde8539719f4bfe6.zip |
Correct ADD operation to map to ALU variant with overflow checking.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
-rw-r--r-- | qtmips_machine/instruction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_machine/instruction.cpp b/qtmips_machine/instruction.cpp index 7006772..d0e0a67 100644 --- a/qtmips_machine/instruction.cpp +++ b/qtmips_machine/instruction.cpp @@ -142,7 +142,7 @@ static const struct InstructionMap alu_instruction_map[] = { IM_UNKNOWN, // 29 IM_UNKNOWN, // 30 IM_UNKNOWN, // 31 - {"ADD", IT_R, ALU_OP_ADDU, NOMEM, nullptr, + {"ADD", IT_R, ALU_OP_ADD, NOMEM, nullptr, .flags = FLAGS_ALU_T_R_STD}, // 32 {"ADDU", IT_R, ALU_OP_ADDU, NOMEM, nullptr, .flags = FLAGS_ALU_T_R_STD}, |