RubySlicc_ComponentMapping.hh (7039:bc0b6ea676b5) | RubySlicc_ComponentMapping.hh (7805:f249937228b5) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 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; --- 137 unchanged lines hidden (view full) --- 146 return GenericMachineType_L2Cache; 147 148 if (machType == MACHINETYPE_L3CACHE_ENUM) 149 return GenericMachineType_L3Cache; 150 151 if (machType == MachineType_Directory) 152 return GenericMachineType_Directory; 153 | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 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; --- 137 unchanged lines hidden (view full) --- 146 return GenericMachineType_L2Cache; 147 148 if (machType == MACHINETYPE_L3CACHE_ENUM) 149 return GenericMachineType_L3Cache; 150 151 if (machType == MachineType_Directory) 152 return GenericMachineType_Directory; 153 |
154 ERROR_MSG("cannot convert to a GenericMachineType"); 155 return GenericMachineType_NULL; | 154 panic("cannot convert to a GenericMachineType"); |
156} 157 158inline int 159machineCount(MachineType machType) 160{ 161 return MachineType_base_count(machType); 162} 163 164#endif // __MEM_RUBY_SLICC_INTERFACE_COMPONENTMAPPINGS_HH__ | 155} 156 157inline int 158machineCount(MachineType machType) 159{ 160 return MachineType_base_count(machType); 161} 162 163#endif // __MEM_RUBY_SLICC_INTERFACE_COMPONENTMAPPINGS_HH__ |