types.hh (6691:cd68b6ecd68d) types.hh (7680:f4eda002333b)
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"
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"
35#include "base/types.hh"
36
37namespace PowerISA
38{
39
40typedef uint32_t MachInst;
41
42BitUnion32(ExtMachInst)

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

83// typedef int RegContextParam;
84// typedef int RegContextVal;
85
86struct CoreSpecific {
87};
88
89} // PowerISA namspace
90
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
91#endif // __ARCH_POWER_TYPES_HH__
103#endif // __ARCH_POWER_TYPES_HH__