mt_constants.hh revision 6376:eaf61ef6a8f2
13116SN/A/* 23116SN/A * Copyright (c) 2007 MIPS Technologies, Inc. 33116SN/A * All rights reserved. 43116SN/A * 53116SN/A * Redistribution and use in source and binary forms, with or without 63116SN/A * modification, are permitted provided that the following conditions are 73116SN/A * met: redistributions of source code must retain the above copyright 83116SN/A * notice, this list of conditions and the following disclaimer; 93116SN/A * redistributions in binary form must reproduce the above copyright 103116SN/A * notice, this list of conditions and the following disclaimer in the 113116SN/A * documentation and/or other materials provided with the distribution; 123116SN/A * neither the name of the copyright holders nor the names of its 133116SN/A * contributors may be used to endorse or promote products derived from 143116SN/A * this software without specific prior written permission. 153116SN/A * 163116SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 173116SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 183116SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 193116SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 203116SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 213116SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 223116SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 233116SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 243116SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 253116SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 263116SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 273116SN/A * 283116SN/A * Authors: Korey Sewell 293116SN/A * Jaidev Patwardhan 303116SN/A */ 313116SN/A 323116SN/A#ifndef __ARCH_MIPS_MT_CONSTANTS_HH__ 333116SN/A#define __ARCH_MIPS_MT_CONSTANTS_HH__ 344218SN/A 353116SN/A#include "arch/mips/types.hh" 363116SN/A#include "base/bitunion.hh" 373116SN/A 384263SN/Anamespace MipsISA 394263SN/A{ 404263SN/A 414263SN/ABitUnion32(MVPControlReg) 424263SN/A Bitfield<3> cpa; 434263SN/A Bitfield<2> stlb; 444263SN/A Bitfield<1> vpc; 454263SN/A Bitfield<0> evp; 464263SN/AEndBitUnion(MVPControlReg) 474263SN/A 484263SN/ABitUnion32(MVPConf0Reg) 494263SN/A Bitfield<31> m; 504263SN/A Bitfield<29> tlbs; 514263SN/A Bitfield<28> gs; 524263SN/A Bitfield<27> pcp; 534263SN/A Bitfield<25, 16> ptlbe; 544263SN/A Bitfield<15> tca; 554263SN/A Bitfield<13, 10> pvpe; 564263SN/A Bitfield<7, 0> ptc; 574263SN/AEndBitUnion(MVPConf0Reg) 584263SN/A 594263SN/ABitUnion32(VPEControlReg) 604263SN/A Bitfield<21> ysi; 614263SN/A Bitfield<18, 16> excpt; 625763SN/A Bitfield<15> te; 635763SN/A Bitfield<7, 0> targTC; 644263SN/AEndBitUnion(VPEControlReg) 654263SN/A 664263SN/ABitUnion32(VPEConf0Reg) 674263SN/A Bitfield<31> m; 684263SN/A Bitfield<28, 21> xtc; 695763SN/A Bitfield<19> tcs; 704263SN/A Bitfield<18> scs; 714263SN/A Bitfield<17> dcs; 724263SN/A Bitfield<16> ics; 734263SN/A Bitfield<1> mvp; 744263SN/A Bitfield<0> vpa; 754263SN/AEndBitUnion(VPEConf0Reg) 764263SN/A 774263SN/ABitUnion32(TCBindReg) 784263SN/A Bitfield<28, 21> curTC; 794263SN/A Bitfield<20, 18> a0; 805763SN/A Bitfield<17> tbe; 814263SN/A Bitfield<3, 0> curVPE; 824263SN/AEndBitUnion(TCBindReg) 834263SN/A 844263SN/ABitUnion32(TCStatusReg) 855763SN/A Bitfield<31, 28> tcu; 865763SN/A Bitfield<27> tmx; 874218SN/A Bitfield<24, 23> rnst; 884263SN/A Bitfield<21> tds; 895763SN/A Bitfield<20> dt; 905763SN/A Bitfield<19, 16> impl; 914218SN/A Bitfield<15> da; 924218SN/A Bitfield<13> a; 934218SN/A Bitfield<12, 11> tksu; 944218SN/A Bitfield<10> ixmt; 954218SN/A Bitfield<7, 0> asid; 964263SN/AEndBitUnion(TCStatusReg) 9711810Sbaz21@cam.ac.uk 9811810Sbaz21@cam.ac.ukBitUnion32(TCHaltReg) 994263SN/A Bitfield<0> h; 1005763SN/AEndBitUnion(TCHaltReg) 1015763SN/A 1025763SN/A} // namespace MipsISA 1033318SN/A 1043318SN/A#endif 1053318SN/A