registers.hh (13611:c8b7847b4171) registers.hh (13613:a19963be12ca)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

91const int ReturnAddressReg = 0;
92const int ReturnValueReg = INTREG_RAX;
93const int FramePointerReg = INTREG_RBP;
94
95// Some OS syscalls use a second register (rdx) to return a second
96// value
97const int SyscallPseudoReturnReg = INTREG_RDX;
98
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

91const int ReturnAddressReg = 0;
92const int ReturnValueReg = INTREG_RAX;
93const int FramePointerReg = INTREG_RBP;
94
95// Some OS syscalls use a second register (rdx) to return a second
96// value
97const int SyscallPseudoReturnReg = INTREG_RDX;
98
99typedef RegVal IntReg;
100typedef uint64_t CCReg;
99typedef uint64_t CCReg;
101typedef RegVal MiscReg;
102
103// Not applicable to x86
104using VecElem = ::DummyVecElem;
105using VecReg = ::DummyVecReg;
106using ConstVecReg = ::DummyConstVecReg;
107using VecRegContainer = ::DummyVecRegContainer;
108constexpr unsigned NumVecElemPerVecReg = ::DummyNumVecElemPerVecReg;
109constexpr size_t VecRegSizeBytes = ::DummyVecRegSizeBytes;
110
111// Not applicable to x86
112using VecPredReg = ::DummyVecPredReg;
113using ConstVecPredReg = ::DummyConstVecPredReg;
114using VecPredRegContainer = ::DummyVecPredRegContainer;
115constexpr size_t VecPredRegSizeBits = ::DummyVecPredRegSizeBits;
116constexpr bool VecPredRegHasPackedRepr = ::DummyVecPredRegHasPackedRepr;
117
100
101// Not applicable to x86
102using VecElem = ::DummyVecElem;
103using VecReg = ::DummyVecReg;
104using ConstVecReg = ::DummyConstVecReg;
105using VecRegContainer = ::DummyVecRegContainer;
106constexpr unsigned NumVecElemPerVecReg = ::DummyNumVecElemPerVecReg;
107constexpr size_t VecRegSizeBytes = ::DummyVecRegSizeBytes;
108
109// Not applicable to x86
110using VecPredReg = ::DummyVecPredReg;
111using ConstVecPredReg = ::DummyConstVecPredReg;
112using VecPredRegContainer = ::DummyVecPredRegContainer;
113constexpr size_t VecPredRegSizeBits = ::DummyVecPredRegSizeBits;
114constexpr bool VecPredRegHasPackedRepr = ::DummyVecPredRegHasPackedRepr;
115
118//These floating point types are correct for mmx, but not
119//technically for x87 (80 bits) or at all for xmm (128 bits)
120typedef RegVal FloatReg;
121
122} // namespace X86ISA
123
124#endif // __ARCH_X86_REGFILE_HH__
116} // namespace X86ISA
117
118#endif // __ARCH_X86_REGFILE_HH__