decode_cache.hh (11168:f98eb2da15a4) | decode_cache.hh (12621:982f22db6230) |
---|---|
1/* 2 * Copyright (c) 2011 Google 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 33 unchanged lines hidden (view full) --- 42{ 43 class Decoder; 44} 45 46namespace DecodeCache 47{ 48 49/// Hash for decoded instructions. | 1/* 2 * Copyright (c) 2011 Google 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 33 unchanged lines hidden (view full) --- 42{ 43 class Decoder; 44} 45 46namespace DecodeCache 47{ 48 49/// Hash for decoded instructions. |
50typedef std::unordered_map<TheISA::ExtMachInst, StaticInstPtr> InstMap; | 50template <typename EMI> 51using InstMap = std::unordered_map<EMI, StaticInstPtr>; |
51 52/// A sparse map from an Addr to a Value, stored in page chunks. 53template<class Value> 54class AddrMap 55{ 56 protected: 57 // A pages worth of cache entries. 58 struct CachePage { --- 72 unchanged lines hidden --- | 52 53/// A sparse map from an Addr to a Value, stored in page chunks. 54template<class Value> 55class AddrMap 56{ 57 protected: 58 // A pages worth of cache entries. 59 struct CachePage { --- 72 unchanged lines hidden --- |