registers.hh revision 13610:5d5404ac6288
112391Sjason@lowepower.com/*
212391Sjason@lowepower.com * Copyright (c) 2013 ARM Limited
312391Sjason@lowepower.com * All rights reserved
412391Sjason@lowepower.com *
512391Sjason@lowepower.com * The license below extends only to copyright in the software and shall
612391Sjason@lowepower.com * not be construed as granting a license to any other intellectual
712391Sjason@lowepower.com * property including but not limited to intellectual property relating
812391Sjason@lowepower.com * to a hardware implementation of the functionality of the software
912391Sjason@lowepower.com * licensed hereunder.  You may use the software subject to the license
1012391Sjason@lowepower.com * terms below provided that you ensure that this notice is replicated
1114299Sbbruce@ucdavis.edu * unmodified and in its entirety in all distributions of the software,
1212391Sjason@lowepower.com * modified or unmodified, in source code or in binary form.
1312391Sjason@lowepower.com *
1414299Sbbruce@ucdavis.edu * Redistribution and use in source and binary forms, with or without
1514299Sbbruce@ucdavis.edu * modification, are permitted provided that the following conditions are
1614299Sbbruce@ucdavis.edu * met: redistributions of source code must retain the above copyright
1712391Sjason@lowepower.com * notice, this list of conditions and the following disclaimer;
1812391Sjason@lowepower.com * redistributions in binary form must reproduce the above copyright
1912391Sjason@lowepower.com * notice, this list of conditions and the following disclaimer in the
2012391Sjason@lowepower.com * documentation and/or other materials provided with the distribution;
2112391Sjason@lowepower.com * neither the name of the copyright holders nor the names of its
2212391Sjason@lowepower.com * contributors may be used to endorse or promote products derived from
2312391Sjason@lowepower.com * this software without specific prior written permission.
2412391Sjason@lowepower.com *
2512391Sjason@lowepower.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2612391Sjason@lowepower.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2712391Sjason@lowepower.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2812391Sjason@lowepower.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2912391Sjason@lowepower.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
3012391Sjason@lowepower.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
3112391Sjason@lowepower.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
3212391Sjason@lowepower.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3312391Sjason@lowepower.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3412391Sjason@lowepower.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3512391Sjason@lowepower.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3612391Sjason@lowepower.com *
3712391Sjason@lowepower.com * Authors: Andreas Hansson
3812391Sjason@lowepower.com */
3914299Sbbruce@ucdavis.edu
4014299Sbbruce@ucdavis.edu#ifndef __ARCH_NULL_REGISTERS_HH__
4112391Sjason@lowepower.com#define __ARCH_NULL_REGISTERS_HH__
4212391Sjason@lowepower.com
4312391Sjason@lowepower.com#include "arch/generic/vec_pred_reg.hh"
4412391Sjason@lowepower.com#include "arch/generic/vec_reg.hh"
4512391Sjason@lowepower.com#include "arch/types.hh"
4612391Sjason@lowepower.com#include "base/types.hh"
4712391Sjason@lowepower.com
4812391Sjason@lowepower.comnamespace NullISA {
4912391Sjason@lowepower.com
5012391Sjason@lowepower.comtypedef RegVal IntReg;
5112391Sjason@lowepower.comtypedef RegVal FloatRegBits;
5212391Sjason@lowepower.comtypedef uint8_t CCReg;
5312391Sjason@lowepower.comtypedef RegVal MiscReg;
5412391Sjason@lowepower.comconst RegIndex ZeroReg = 0;
5512391Sjason@lowepower.com
5612391Sjason@lowepower.com// Not applicable to null
5712391Sjason@lowepower.comusing VecElem = ::DummyVecElem;
5812391Sjason@lowepower.comusing VecReg = ::DummyVecReg;
5912391Sjason@lowepower.comusing ConstVecReg = ::DummyConstVecReg;
6012391Sjason@lowepower.comusing VecRegContainer = ::DummyVecRegContainer;
6112391Sjason@lowepower.comconstexpr unsigned NumVecElemPerVecReg = ::DummyNumVecElemPerVecReg;
6212391Sjason@lowepower.comconstexpr size_t VecRegSizeBytes = ::DummyVecRegSizeBytes;
6312391Sjason@lowepower.com
6412391Sjason@lowepower.com// Not applicable to null
6512391Sjason@lowepower.comusing VecPredReg = ::DummyVecPredReg;
6614299Sbbruce@ucdavis.eduusing ConstVecPredReg = ::DummyConstVecPredReg;
6714299Sbbruce@ucdavis.eduusing VecPredRegContainer = ::DummyVecPredRegContainer;
6814299Sbbruce@ucdavis.educonstexpr size_t VecPredRegSizeBits = ::DummyVecPredRegSizeBits;
6914299Sbbruce@ucdavis.educonstexpr bool VecPredRegHasPackedRepr = ::DummyVecPredRegHasPackedRepr;
7012391Sjason@lowepower.com
7112391Sjason@lowepower.com}
7212391Sjason@lowepower.com
7312391Sjason@lowepower.com#endif // __ARCH_NULL_REGISTERS_HH__
7412391Sjason@lowepower.com