mt_constants.hh revision 6376:eaf61ef6a8f2
111104Spower.jg@gmail.com/*
211104Spower.jg@gmail.com * Copyright (c) 2007 MIPS Technologies, Inc.
311104Spower.jg@gmail.com * All rights reserved.
411104Spower.jg@gmail.com *
511104Spower.jg@gmail.com * Redistribution and use in source and binary forms, with or without
611104Spower.jg@gmail.com * modification, are permitted provided that the following conditions are
711104Spower.jg@gmail.com * met: redistributions of source code must retain the above copyright
811104Spower.jg@gmail.com * notice, this list of conditions and the following disclaimer;
911104Spower.jg@gmail.com * redistributions in binary form must reproduce the above copyright
1011104Spower.jg@gmail.com * notice, this list of conditions and the following disclaimer in the
1111104Spower.jg@gmail.com * documentation and/or other materials provided with the distribution;
1211104Spower.jg@gmail.com * neither the name of the copyright holders nor the names of its
1311104Spower.jg@gmail.com * contributors may be used to endorse or promote products derived from
1411104Spower.jg@gmail.com * this software without specific prior written permission.
1511104Spower.jg@gmail.com *
1611104Spower.jg@gmail.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1711104Spower.jg@gmail.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1811104Spower.jg@gmail.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1911104Spower.jg@gmail.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2011104Spower.jg@gmail.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2111104Spower.jg@gmail.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2211104Spower.jg@gmail.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2311104Spower.jg@gmail.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2411104Spower.jg@gmail.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2511104Spower.jg@gmail.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2611104Spower.jg@gmail.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2711104Spower.jg@gmail.com *
2811104Spower.jg@gmail.com * Authors: Korey Sewell
2911104Spower.jg@gmail.com *          Jaidev Patwardhan
3011104Spower.jg@gmail.com */
3111104Spower.jg@gmail.com
3211104Spower.jg@gmail.com#ifndef __ARCH_MIPS_MT_CONSTANTS_HH__
3311104Spower.jg@gmail.com#define __ARCH_MIPS_MT_CONSTANTS_HH__
3411104Spower.jg@gmail.com
3511104Spower.jg@gmail.com#include "arch/mips/types.hh"
3611104Spower.jg@gmail.com#include "base/bitunion.hh"
3711104Spower.jg@gmail.com
3811104Spower.jg@gmail.comnamespace MipsISA
3911104Spower.jg@gmail.com{
4011104Spower.jg@gmail.com
4111104Spower.jg@gmail.comBitUnion32(MVPControlReg)
4211104Spower.jg@gmail.com    Bitfield<3> cpa;
4311104Spower.jg@gmail.com    Bitfield<2> stlb;
4411104Spower.jg@gmail.com    Bitfield<1> vpc;
4511104Spower.jg@gmail.com    Bitfield<0> evp;
4611104Spower.jg@gmail.comEndBitUnion(MVPControlReg)
4711104Spower.jg@gmail.com
4811104Spower.jg@gmail.comBitUnion32(MVPConf0Reg)
4911682Sandreas.hansson@arm.com    Bitfield<31>     m;
5011104Spower.jg@gmail.com    Bitfield<29>     tlbs;
5111104Spower.jg@gmail.com    Bitfield<28>     gs;
5211104Spower.jg@gmail.com    Bitfield<27>     pcp;
5311104Spower.jg@gmail.com    Bitfield<25, 16> ptlbe;
5411104Spower.jg@gmail.com    Bitfield<15>     tca;
5511682Sandreas.hansson@arm.com    Bitfield<13, 10> pvpe;
5611104Spower.jg@gmail.com    Bitfield<7,  0>  ptc;
5711104Spower.jg@gmail.comEndBitUnion(MVPConf0Reg)
5811104Spower.jg@gmail.com
5911104Spower.jg@gmail.comBitUnion32(VPEControlReg)
6011104Spower.jg@gmail.com    Bitfield<21>     ysi;
6111104Spower.jg@gmail.com    Bitfield<18, 16> excpt;
6211104Spower.jg@gmail.com    Bitfield<15>     te;
6311104Spower.jg@gmail.com    Bitfield<7,  0>  targTC;
6411104Spower.jg@gmail.comEndBitUnion(VPEControlReg)
6511104Spower.jg@gmail.com
6611104Spower.jg@gmail.comBitUnion32(VPEConf0Reg)
6711104Spower.jg@gmail.com    Bitfield<31>     m;
6811104Spower.jg@gmail.com    Bitfield<28, 21> xtc;
6911104Spower.jg@gmail.com    Bitfield<19>     tcs;
7011104Spower.jg@gmail.com    Bitfield<18>     scs;
7111104Spower.jg@gmail.com    Bitfield<17>     dcs;
7211104Spower.jg@gmail.com    Bitfield<16>     ics;
7311104Spower.jg@gmail.com    Bitfield<1>      mvp;
7411104Spower.jg@gmail.com    Bitfield<0>      vpa;
7511104Spower.jg@gmail.comEndBitUnion(VPEConf0Reg)
7611104Spower.jg@gmail.com
7711104Spower.jg@gmail.comBitUnion32(TCBindReg)
7811104Spower.jg@gmail.com    Bitfield<28, 21> curTC;
7911104Spower.jg@gmail.com    Bitfield<20, 18> a0;
8011104Spower.jg@gmail.com    Bitfield<17>     tbe;
8111104Spower.jg@gmail.com    Bitfield<3,  0>  curVPE;
8211104Spower.jg@gmail.comEndBitUnion(TCBindReg)
8311104Spower.jg@gmail.com
8411104Spower.jg@gmail.comBitUnion32(TCStatusReg)
8511104Spower.jg@gmail.com    Bitfield<31, 28> tcu;
8611104Spower.jg@gmail.com    Bitfield<27>     tmx;
8711104Spower.jg@gmail.com    Bitfield<24, 23> rnst;
8811104Spower.jg@gmail.com    Bitfield<21>     tds;
8911104Spower.jg@gmail.com    Bitfield<20>     dt;
9011104Spower.jg@gmail.com    Bitfield<19, 16> impl;
9111104Spower.jg@gmail.com    Bitfield<15>     da;
9211104Spower.jg@gmail.com    Bitfield<13>     a;
9311104Spower.jg@gmail.com    Bitfield<12, 11> tksu;
9411104Spower.jg@gmail.com    Bitfield<10>     ixmt;
9511104Spower.jg@gmail.com    Bitfield<7,  0>  asid;
9611104Spower.jg@gmail.comEndBitUnion(TCStatusReg)
9711104Spower.jg@gmail.com
9811104Spower.jg@gmail.comBitUnion32(TCHaltReg)
9911104Spower.jg@gmail.com    Bitfield<0> h;
10011104Spower.jg@gmail.comEndBitUnion(TCHaltReg)
10111104Spower.jg@gmail.com
10211104Spower.jg@gmail.com} // namespace MipsISA
10311104Spower.jg@gmail.com
10411104Spower.jg@gmail.com#endif
10511104Spower.jg@gmail.com