arch: Add an "as" template to dummy vec regs.

Keep the unit tests compiling until the generic dummy vec and vec pred
regs are unnecessary and are eliminated.

Change-Id: I65d99cd3f4c41e89834b71a8af90872d8d5a4590
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/57749
Maintainer: Gabe Black <gabe.black@gmail.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Gabe Black
2022-03-15 21:11:03 -07:00
parent 1dad34a403
commit 274042a362
2 changed files with 4 additions and 0 deletions

View File

@@ -400,6 +400,8 @@ struct DummyVecPredRegContainer
RegVal filler = 0;
bool operator == (const DummyVecPredRegContainer &d) const { return true; }
bool operator != (const DummyVecPredRegContainer &d) const { return true; }
template <typename VecElem>
VecElem *as() { return nullptr; }
};
template <>
struct ParseParam<DummyVecPredRegContainer>

View File

@@ -270,6 +270,8 @@ struct DummyVecRegContainer
RegVal filler = 0;
bool operator == (const DummyVecRegContainer &d) const { return true; }
bool operator != (const DummyVecRegContainer &d) const { return true; }
template <typename VecElem>
VecElem *as() { return nullptr; }
};
template <>
struct ParseParam<DummyVecRegContainer>