aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/core.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-01-31 00:02:00 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-01-31 00:02:00 +0100
commit4154f8e31896c90cba67ac5044425df7f8fed821 (patch)
treedc41186eb831fc2da44b5c760f02f1cb21271bb2 /qtmips_machine/core.h
parentd33f4440e25dfef6aad971d483670ed21411492d (diff)
downloadqtmips-4154f8e31896c90cba67ac5044425df7f8fed821.tar.gz
qtmips-4154f8e31896c90cba67ac5044425df7f8fed821.tar.bz2
qtmips-4154f8e31896c90cba67ac5044425df7f8fed821.zip
Correct processing of ORI, ANDI, XORI instructions which require zero-extended immediate.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/core.h')
-rw-r--r--qtmips_machine/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qtmips_machine/core.h b/qtmips_machine/core.h
index 386b486..0c9a1b1 100644
--- a/qtmips_machine/core.h
+++ b/qtmips_machine/core.h
@@ -89,6 +89,7 @@ protected:
enum MemoryAccess::AccessControl memctl; // Decoded memory access type
std::uint32_t val_rs; // Value from register rs
std::uint32_t val_rt; // Value from register rt
+ std::uint32_t immediate_val; // zero or sign-extended immediate value
ForwardFrom ff_rs;
ForwardFrom ff_rt;
};