summaryrefslogtreecommitdiff
path: root/src/arch/generic
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/generic')
-rw-r--r--src/arch/generic/types.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/generic/types.hh b/src/arch/generic/types.hh
index 353112913..7f9f93f42 100644
--- a/src/arch/generic/types.hh
+++ b/src/arch/generic/types.hh
@@ -32,6 +32,7 @@
#define __ARCH_GENERIC_TYPES_HH__
#include <iostream>
+#include <limits>
#include "base/trace.hh"
#include "base/types.hh"
@@ -43,6 +44,9 @@ typedef uint16_t RegIndex;
/** Logical vector register elem index type. */
using ElemIndex = uint16_t;
+/** ElemIndex value that indicates that the register is not a vector. */
+#define ILLEGAL_ELEM_INDEX std::numeric_limits<ElemIndex>::max()
+
namespace GenericISA
{