From 563e19d1fd151fe222af2455536d8239f5c6d3dc Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 27 Mar 2018 01:20:05 -0700 Subject: 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 Maintainer: Gabe Black --- src/cpu/decode_cache.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cpu') diff --git a/src/cpu/decode_cache.hh b/src/cpu/decode_cache.hh index c451cbb69..2d33455e0 100644 --- a/src/cpu/decode_cache.hh +++ b/src/cpu/decode_cache.hh @@ -47,7 +47,8 @@ namespace DecodeCache { /// Hash for decoded instructions. -typedef std::unordered_map InstMap; +template +using InstMap = std::unordered_map; /// A sparse map from an Addr to a Value, stored in page chunks. template -- cgit v1.2.3