diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-15 15:23:56 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-15 15:23:56 +0100 |
commit | eb217996098ffb5706cfe0ca8ffa4478b73ceb8e (patch) | |
tree | b968a4edf276d5f2cf9db422f455774bf7a7061d /qtmips_machine/tests | |
parent | ab9ddf2beb8a266dd31e31178c53616b79ce4428 (diff) | |
download | qtmips-eb217996098ffb5706cfe0ca8ffa4478b73ceb8e.tar.gz qtmips-eb217996098ffb5706cfe0ca8ffa4478b73ceb8e.tar.bz2 qtmips-eb217996098ffb5706cfe0ca8ffa4478b73ceb8e.zip |
Implement EXT instruction used in GLIBC startup.
It requires one more field to pass to ALU.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/tests')
-rw-r--r-- | qtmips_machine/tests/testalu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qtmips_machine/tests/testalu.cpp b/qtmips_machine/tests/testalu.cpp index d3d27ec..b0e7073 100644 --- a/qtmips_machine/tests/testalu.cpp +++ b/qtmips_machine/tests/testalu.cpp @@ -224,7 +224,7 @@ void MachineTests::alu() { QFETCH(Registers, regs_res); QFETCH(std::uint32_t, res); - QCOMPARE(alu_operate(op, s , t, sa, ®s_init, discard), res); + QCOMPARE(alu_operate(op, s , t, sa, 0, ®s_init, discard), res); QCOMPARE(regs_res, regs_init); } @@ -254,5 +254,5 @@ void MachineTests::alu_except() { Registers regs; // Only runtime exception is expected as any other exception is a bug - QVERIFY_EXCEPTION_THROWN(alu_operate((enum AluOp)op, s , t, 0, ®s, discard), QtMipsExceptionRuntime); + QVERIFY_EXCEPTION_THROWN(alu_operate((enum AluOp)op, s , t, 0, 0, ®s, discard), QtMipsExceptionRuntime); } |