mt_constants.hh revision 4661
12SN/A/*
21762SN/A * Copyright (c) 2006 The Regents of The University of Michigan
37897Shestness@cs.utexas.edu * All rights reserved.
42SN/A *
52SN/A * Redistribution and use in source and binary forms, with or without
62SN/A * modification, are permitted provided that the following conditions are
72SN/A * met: redistributions of source code must retain the above copyright
82SN/A * notice, this list of conditions and the following disclaimer;
92SN/A * redistributions in binary form must reproduce the above copyright
102SN/A * notice, this list of conditions and the following disclaimer in the
112SN/A * documentation and/or other materials provided with the distribution;
122SN/A * neither the name of the copyright holders nor the names of its
132SN/A * contributors may be used to endorse or promote products derived from
142SN/A * this software without specific prior written permission.
152SN/A *
162SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
172SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
182SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
192SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
202SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
212SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
222SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
232SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
242SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
252SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
262SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272SN/A *
282665Ssaidi@eecs.umich.edu * Authors: Korey Sewell
292665Ssaidi@eecs.umich.edu */
302665Ssaidi@eecs.umich.edu
317897Shestness@cs.utexas.edu#ifndef __ARCH_MIPS_MT_CONSTANTS_HH__
322SN/A#define __ARCH_MIPS_MT_CONSTANTS_HH__
332SN/A
341388SN/A#include "arch/mips/types.hh"
352SN/A//#include "config/full_system.hh"
362SN/A
372SN/Anamespace MipsISA
387781SAli.Saidi@ARM.com{
391191SN/A// MVPControl
401191SN/Aconst unsigned MVPC_EVP = 0;
411191SN/Aconst unsigned MVPC_CUR_VPE_HI = 3;
421388SN/Aconst unsigned MVPC_CUR_VPE_LO = 0;
435529Snate@binkert.org
441717SN/A// MVPConf0
452651Ssaidi@eecs.umich.educonst unsigned MVPC0_TCA = 15;
462680Sktlim@umich.educonst unsigned MVPC0_PVPE_HI = 13;
471977SN/Aconst unsigned MVPC0_PVPE_LO = 10;
485529Snate@binkert.orgconst unsigned MVPC0_PTC_HI = 7;
493144Shsul@eecs.umich.educonst unsigned MVPC0_PTC_LO = 0;
502190SN/A
5156SN/A//VPEControl
522190SN/Aconst unsigned VPEC_YSI = 21;
532SN/Aconst unsigned VPEC_EXCPT_HI = 18;
542359SN/Aconst unsigned VPEC_EXCPT_LO = 16;
552359SN/Aconst unsigned VPEC_TE = 15;
562359SN/Aconst unsigned VPEC_TARG_TC_HI = 7;
572SN/Aconst unsigned VPEC_TARG_TC_LO = 0;
582SN/A
592SN/A//VPEConf0
602SN/Aconst unsigned VPEC0_MVP = 1;
612SN/A
622SN/A//TCBind
632SN/Aconst unsigned TCB_CUR_VPE_HI = 3;
642SN/Aconst unsigned TCB_CUR_VPE_LO = 0;
652SN/Aconst unsigned TCB_CUR_TC_HI = 28;
665606Snate@binkert.orgconst unsigned TCB_CUR_TC_LO = 21;
676144Sksewell@umich.edu
686144Sksewell@umich.edu
693126Sktlim@umich.edu//TCStatus
706144Sksewell@umich.educonst unsigned TCS_TCU_HI = 31;
717823Ssteve.reinhardt@amd.comconst unsigned TCS_TCU_LO = 28;
723126Sktlim@umich.educonst unsigned TCS_TMX = 27;
733126Sktlim@umich.educonst unsigned TCS_DT = 20;
742356SN/Aconst unsigned TCS_DA = 15;
752356SN/Aconst unsigned TCS_A = 13;
762356SN/Aconst unsigned TCS_TKSU_HI = 12;
772367SN/Aconst unsigned TCS_TKSU_LO = 11;
782356SN/Aconst unsigned TCS_IXMT = 7;
796144Sksewell@umich.educonst unsigned TCS_ASID_HI = 7;
802367SN/Aconst unsigned TCS_ASID_LO = 7;
816144Sksewell@umich.edu
826144Sksewell@umich.educonst unsigned TCSTATUS_TCU_HI = 31;
836144Sksewell@umich.educonst unsigned TCSTATUS_TCU_LO = 28;
842356SN/Aconst unsigned TCSTATUS_TMX = 27;
852367SN/Aconst unsigned TCSTATUS_RNST_HI = 24;
866144Sksewell@umich.educonst unsigned TCSTATUS_RNST_LO = 23;
877823Ssteve.reinhardt@amd.comconst unsigned TCSTATUS_TDS = 21;
886144Sksewell@umich.educonst unsigned TCSTATUS_DT = 20;
892367SN/Aconst unsigned TCSTATUS_DA = 15;
902356SN/Aconst unsigned TCSTATUS_A = 13;
916144Sksewell@umich.educonst unsigned TCSTATUS_TKSU_HI = 12;
926144Sksewell@umich.educonst unsigned TCSTATUS_TKSU_LO = 11;
937823Ssteve.reinhardt@amd.comconst unsigned TCSTATUS_IXMT = 7;
942356SN/Aconst unsigned TCSTATUS_ASID_HI = 7;
952356SN/Aconst unsigned TCSTATUS_ASID_LO = 7;
962356SN/A
975336Shines@cs.fsu.edu//TCHalt
982356SN/Aconst unsigned TCH_H = 0;
994873Sstever@eecs.umich.edu
1002356SN/A//Status
1012356SN/Aconst unsigned S_CU_HI = 31;
1021858SN/Aconst unsigned S_CU_LO = 28;
1031400SN/Aconst unsigned S_MX = 24;
1045712Shsul@eecs.umich.educonst unsigned S_KSU_HI = 4;
1055712Shsul@eecs.umich.educonst unsigned S_KSU_LO = 3;
1066221Snate@binkert.org
1073661Srdreslin@umich.edu// Config0
1082SN/Aconst unsigned CFG_M = 31;
1091400SN/A
1105712Shsul@eecs.umich.edu// Config1
1116221Snate@binkert.orgconst unsigned CFG1_M = 31;
1123661Srdreslin@umich.edu
1132SN/A// Config2
1142SN/Aconst unsigned CFG2_M = 31;
1157823Ssteve.reinhardt@amd.com
1161062SN/A// Config3
1175712Shsul@eecs.umich.educonst unsigned CFG3_M = 31;
1185712Shsul@eecs.umich.educonst unsigned CFG3_MT = 2;
1195712Shsul@eecs.umich.edu
1205712Shsul@eecs.umich.edu} // namespace MipsISA
1215712Shsul@eecs.umich.edu
1222SN/A#endif
1232SN/A