miscregs.hh revision 7811
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; 9 * redistributions in binary form must reproduce the above copyright 10 * notice, this list of conditions and the following disclaimer in the 11 * documentation and/or other materials provided with the distribution; 12 * neither the name of the copyright holders nor the names of its 13 * contributors may be used to endorse or promote products derived from 14 * this software without specific prior written permission. 15 * 16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 20 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Timothy M. Jones 29 */ 30 31#ifndef __ARCH_POWER_MISCREGS_HH__ 32#define __ARCH_POWER_MISCREGS_HH__ 33 34#include "base/bitunion.hh" 35 36namespace PowerISA 37{ 38 39enum MiscRegIndex { 40 NUM_MISCREGS = 0 41}; 42 43const char * const miscRegName[NUM_MISCREGS] = { 44}; 45 46BitUnion32(Cr) 47 SubBitUnion(cr0, 31, 28) 48 Bitfield<31> lt; 49 Bitfield<30> gt; 50 Bitfield<29> eq; 51 Bitfield<28> so; 52 EndSubBitUnion(cr0) 53 Bitfield<27,24> cr1; 54EndBitUnion(Cr) 55 56BitUnion32(Xer) 57 Bitfield<31> so; 58 Bitfield<30> ov; 59 Bitfield<29> ca; 60EndBitUnion(Xer) 61 62BitUnion32(Fpscr) 63 Bitfield<31> fx; 64 Bitfield<30> fex; 65 Bitfield<29> vx; 66 Bitfield<28> ox; 67 Bitfield<27> ux; 68 Bitfield<26> zx; 69 Bitfield<25> xx; 70 Bitfield<24> vxsnan; 71 Bitfield<23> vxisi; 72 Bitfield<22> vxidi; 73 Bitfield<21> vxzdz; 74 Bitfield<20> vximz; 75 Bitfield<19> vxvc; 76 Bitfield<18> fr; 77 Bitfield<17> fi; 78 SubBitUnion(fprf, 16, 12) 79 Bitfield<16> c; 80 SubBitUnion(fpcc, 15, 12) 81 Bitfield<15> fl; 82 Bitfield<14> fg; 83 Bitfield<13> fe; 84 Bitfield<12> fu; 85 EndSubBitUnion(fpcc) 86 EndSubBitUnion(fprf) 87 Bitfield<10> vxsqrt; 88 Bitfield<9> vxcvi; 89 Bitfield<8> ve; 90 Bitfield<7> oe; 91 Bitfield<6> ue; 92 Bitfield<5> ze; 93 Bitfield<4> xe; 94 Bitfield<3> ni; 95 Bitfield<2,1> rn; 96EndBitUnion(Fpscr) 97 98} // namespace PowerISA 99 100#endif // __ARCH_POWER_MISCREGS_HH__ 101