base: Add standard types for floating and nonfloating point register values.
authorGabe Black <gabeblack@google.com>
Sat, 13 Oct 2018 00:21:18 +0000 (17:21 -0700)
committerGabe Black <gabeblack@google.com>
Mon, 5 Nov 2018 23:42:08 +0000 (23:42 +0000)
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>

src/base/types.hh

index d07c370ab514d0ebe00d5c97ae632e467474ac6a..a53f4db9dbc1dd832cc567d60489a1348485cec9 100644 (file)
@@ -165,6 +165,9 @@ isRomMicroPC(MicroPC upc)
 
 const Addr MaxAddr = (Addr)-1;
 
+typedef uint64_t RegVal;
+typedef double FloatRegVal;
+
 /**
  * Thread index/ID type
  */