registers.hh (13390:6f399d282ab5) registers.hh (13556:9f57bb56153a)
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * Copyright (c) 2007 MIPS Technologies, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

273
274 MISCREG_NUMREGS
275};
276
277const int NumMiscRegs = MISCREG_NUMREGS;
278
279const int TotalNumRegs = NumIntRegs + NumFloatRegs + NumMiscRegs;
280
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * Copyright (c) 2007 MIPS Technologies, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

273
274 MISCREG_NUMREGS
275};
276
277const int NumMiscRegs = MISCREG_NUMREGS;
278
279const int TotalNumRegs = NumIntRegs + NumFloatRegs + NumMiscRegs;
280
281typedef uint64_t IntReg;
281typedef RegVal IntReg;
282
283// floating point register file entry type
282
283// floating point register file entry type
284typedef uint64_t FloatRegBits;
285typedef double FloatReg;
284typedef RegVal FloatRegBits;
285typedef FloatRegVal FloatReg;
286
287// cop-0/cop-1 system control register
286
287// cop-0/cop-1 system control register
288typedef uint64_t MiscReg;
288typedef RegVal MiscReg;
289
290// dummy typedef since we don't have CC regs
291typedef uint8_t CCReg;
292
293// dummy typedefs since we don't have vector regs
294constexpr unsigned NumVecElemPerVecReg = 2;
295using VecElem = uint32_t;
296using VecReg = ::VecRegT<VecElem, NumVecElemPerVecReg, false>;
297using ConstVecReg = ::VecRegT<VecElem, NumVecElemPerVecReg, true>;
298using VecRegContainer = VecReg::Container;
299// This has to be one to prevent warnings that are treated as errors
300constexpr unsigned NumVecRegs = 1;
301
302} // namespace MipsISA
303
304#endif
289
290// dummy typedef since we don't have CC regs
291typedef uint8_t CCReg;
292
293// dummy typedefs since we don't have vector regs
294constexpr unsigned NumVecElemPerVecReg = 2;
295using VecElem = uint32_t;
296using VecReg = ::VecRegT<VecElem, NumVecElemPerVecReg, false>;
297using ConstVecReg = ::VecRegT<VecElem, NumVecElemPerVecReg, true>;
298using VecRegContainer = VecReg::Container;
299// This has to be one to prevent warnings that are treated as errors
300constexpr unsigned NumVecRegs = 1;
301
302} // namespace MipsISA
303
304#endif