arch: cpu: Make the ExtMachInst type a template argument in InstMap.

This doesn't completely hide the ISA specific ExtMachInst type inside
the ISAs since it still gets applied in arch/generic, but it at least
pulls it into the arch directory.

Change-Id: Ic2188d59696530d7ecafdff0785d71867182701d
Reviewed-on: https://gem5-review.googlesource.com/9403
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
Gabe Black
2018-03-27 01:20:05 -07:00
parent 4384493da7
commit 563e19d1fd
6 changed files with 10 additions and 8 deletions

View File

@@ -47,7 +47,8 @@ namespace DecodeCache
{
/// Hash for decoded instructions.
typedef std::unordered_map<TheISA::ExtMachInst, StaticInstPtr> InstMap;
template <typename EMI>
using InstMap = std::unordered_map<EMI, StaticInstPtr>;
/// A sparse map from an Addr to a Value, stored in page chunks.
template<class Value>