1/* 2 * Copyright (c) 2009 The University of Edinburgh 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; --- 18 unchanged lines hidden (view full) --- 27 * 28 * Authors: Timothy M. Jones 29 */ 30 31#ifndef __ARCH_POWER_TYPES_HH__ 32#define __ARCH_POWER_TYPES_HH__ 33 34#include "base/bitunion.hh" |
35#include "base/hashmap.hh" |
36#include "base/types.hh" 37 38namespace PowerISA 39{ 40 41typedef uint32_t MachInst; 42 43BitUnion32(ExtMachInst) --- 40 unchanged lines hidden (view full) --- 84// typedef int RegContextParam; 85// typedef int RegContextVal; 86 87struct CoreSpecific { 88}; 89 90} // PowerISA namspace 91 |
92namespace __hash_namespace { 93 94template<> 95struct hash<PowerISA::ExtMachInst> : public hash<uint32_t> { 96 size_t operator()(const PowerISA::ExtMachInst &emi) const { 97 return hash<uint32_t>::operator()((uint32_t)emi); 98 }; 99}; 100 101} // __hash_namespace namespace 102 |
103#endif // __ARCH_POWER_TYPES_HH__ |