summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-10-12 17:21:18 -0700
committerGabe Black <gabeblack@google.com>2018-11-05 23:42:08 +0000
commit9dbc9bb4f2b49cfa0d9f1cf844929896c27a2d27 (patch)
tree03850d679495f2edab2b334e76674d82ec43e8d1
parent543b7865337a982dc1f49cc5dfeee960da20b329 (diff)
downloadgem5-9dbc9bb4f2b49cfa0d9f1cf844929896c27a2d27.tar.xz
base: Add standard types for floating and nonfloating point register values.
These should be used instead of the ISA specific ones, and should be at least as large as the largest primitive register type in all the ISAs. Change-Id: Iaac104eef74eabcdd87787b1cdf8bea22d449eda Reviewed-on: https://gem5-review.googlesource.com/c/13615 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Gabe Black <gabeblack@google.com>
-rw-r--r--src/base/types.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base/types.hh b/src/base/types.hh
index d07c370ab..a53f4db9d 100644
--- a/src/base/types.hh
+++ b/src/base/types.hh
@@ -165,6 +165,9 @@ isRomMicroPC(MicroPC upc)
const Addr MaxAddr = (Addr)-1;
+typedef uint64_t RegVal;
+typedef double FloatRegVal;
+
/**
* Thread index/ID type
*/