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;

--- 19 unchanged lines hidden (view full) ---

28 * Authors: Timothy M. Jones
29 */
30
31#ifndef __ARCH_POWER_TYPES_HH__
32#define __ARCH_POWER_TYPES_HH__
33
34#include "arch/generic/types.hh"
35#include "base/bitunion.hh"
36#include "base/hashmap.hh"
36#include "base/types.hh"
37
38namespace PowerISA
39{
40
41typedef uint32_t MachInst;
42
43BitUnion32(ExtMachInst)

--- 39 unchanged lines hidden (view full) ---

83// typedef uint64_t LargestRead;
84// // Need to use 64 bits to make sure that read requests get handled properly
85
86// typedef int RegContextParam;
87// typedef int RegContextVal;
88
89} // PowerISA namespace
90
92__hash_namespace_begin
91namespace std {
92
93template<>
94struct hash<PowerISA::ExtMachInst> : public hash<uint32_t> {
95 size_t operator()(const PowerISA::ExtMachInst &emi) const {
96 return hash<uint32_t>::operator()((uint32_t)emi);
97 };
98};
99
101__hash_namespace_end
100}
101
102#endif // __ARCH_POWER_TYPES_HH__