types.hh (8946:fb6c89334b86) types.hh (11168:f98eb2da15a4)
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"
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"
37#include "base/types.hh"
38
39namespace PowerISA
40{
41
42typedef uint32_t MachInst;
43
44BitUnion32(ExtMachInst)

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

84// typedef uint64_t LargestRead;
85// // Need to use 64 bits to make sure that read requests get handled properly
86
87// typedef int RegContextParam;
88// typedef int RegContextVal;
89
90} // PowerISA namespace
91
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 {
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
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}
102
103#endif // __ARCH_POWER_TYPES_HH__
101
102#endif // __ARCH_POWER_TYPES_HH__