mt_constants.hh revision 4661
14661Sksewell@umich.edu/*
24661Sksewell@umich.edu * Copyright (c) 2006 The Regents of The University of Michigan
34661Sksewell@umich.edu * All rights reserved.
44661Sksewell@umich.edu *
54661Sksewell@umich.edu * Redistribution and use in source and binary forms, with or without
64661Sksewell@umich.edu * modification, are permitted provided that the following conditions are
74661Sksewell@umich.edu * met: redistributions of source code must retain the above copyright
84661Sksewell@umich.edu * notice, this list of conditions and the following disclaimer;
94661Sksewell@umich.edu * redistributions in binary form must reproduce the above copyright
104661Sksewell@umich.edu * notice, this list of conditions and the following disclaimer in the
114661Sksewell@umich.edu * documentation and/or other materials provided with the distribution;
124661Sksewell@umich.edu * neither the name of the copyright holders nor the names of its
134661Sksewell@umich.edu * contributors may be used to endorse or promote products derived from
144661Sksewell@umich.edu * this software without specific prior written permission.
154661Sksewell@umich.edu *
164661Sksewell@umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
174661Sksewell@umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
184661Sksewell@umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
194661Sksewell@umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
204661Sksewell@umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
214661Sksewell@umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
224661Sksewell@umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
234661Sksewell@umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
244661Sksewell@umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
254661Sksewell@umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
264661Sksewell@umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
274661Sksewell@umich.edu *
284661Sksewell@umich.edu * Authors: Korey Sewell
294661Sksewell@umich.edu */
304661Sksewell@umich.edu
314661Sksewell@umich.edu#ifndef __ARCH_MIPS_MT_CONSTANTS_HH__
324661Sksewell@umich.edu#define __ARCH_MIPS_MT_CONSTANTS_HH__
334661Sksewell@umich.edu
344661Sksewell@umich.edu#include "arch/mips/types.hh"
354661Sksewell@umich.edu//#include "config/full_system.hh"
364661Sksewell@umich.edu
374661Sksewell@umich.edunamespace MipsISA
384661Sksewell@umich.edu{
394661Sksewell@umich.edu// MVPControl
404661Sksewell@umich.educonst unsigned MVPC_EVP = 0;
414661Sksewell@umich.educonst unsigned MVPC_CUR_VPE_HI = 3;
424661Sksewell@umich.educonst unsigned MVPC_CUR_VPE_LO = 0;
434661Sksewell@umich.edu
444661Sksewell@umich.edu// MVPConf0
454661Sksewell@umich.educonst unsigned MVPC0_TCA = 15;
464661Sksewell@umich.educonst unsigned MVPC0_PVPE_HI = 13;
474661Sksewell@umich.educonst unsigned MVPC0_PVPE_LO = 10;
484661Sksewell@umich.educonst unsigned MVPC0_PTC_HI = 7;
494661Sksewell@umich.educonst unsigned MVPC0_PTC_LO = 0;
504661Sksewell@umich.edu
514661Sksewell@umich.edu//VPEControl
524661Sksewell@umich.educonst unsigned VPEC_YSI = 21;
534661Sksewell@umich.educonst unsigned VPEC_EXCPT_HI = 18;
544661Sksewell@umich.educonst unsigned VPEC_EXCPT_LO = 16;
554661Sksewell@umich.educonst unsigned VPEC_TE = 15;
564661Sksewell@umich.educonst unsigned VPEC_TARG_TC_HI = 7;
574661Sksewell@umich.educonst unsigned VPEC_TARG_TC_LO = 0;
584661Sksewell@umich.edu
594661Sksewell@umich.edu//VPEConf0
604661Sksewell@umich.educonst unsigned VPEC0_MVP = 1;
614661Sksewell@umich.edu
624661Sksewell@umich.edu//TCBind
634661Sksewell@umich.educonst unsigned TCB_CUR_VPE_HI = 3;
644661Sksewell@umich.educonst unsigned TCB_CUR_VPE_LO = 0;
654661Sksewell@umich.educonst unsigned TCB_CUR_TC_HI = 28;
664661Sksewell@umich.educonst unsigned TCB_CUR_TC_LO = 21;
674661Sksewell@umich.edu
684661Sksewell@umich.edu
694661Sksewell@umich.edu//TCStatus
704661Sksewell@umich.educonst unsigned TCS_TCU_HI = 31;
714661Sksewell@umich.educonst unsigned TCS_TCU_LO = 28;
724661Sksewell@umich.educonst unsigned TCS_TMX = 27;
734661Sksewell@umich.educonst unsigned TCS_DT = 20;
744661Sksewell@umich.educonst unsigned TCS_DA = 15;
754661Sksewell@umich.educonst unsigned TCS_A = 13;
764661Sksewell@umich.educonst unsigned TCS_TKSU_HI = 12;
774661Sksewell@umich.educonst unsigned TCS_TKSU_LO = 11;
784661Sksewell@umich.educonst unsigned TCS_IXMT = 7;
794661Sksewell@umich.educonst unsigned TCS_ASID_HI = 7;
804661Sksewell@umich.educonst unsigned TCS_ASID_LO = 7;
814661Sksewell@umich.edu
824661Sksewell@umich.educonst unsigned TCSTATUS_TCU_HI = 31;
834661Sksewell@umich.educonst unsigned TCSTATUS_TCU_LO = 28;
844661Sksewell@umich.educonst unsigned TCSTATUS_TMX = 27;
854661Sksewell@umich.educonst unsigned TCSTATUS_RNST_HI = 24;
864661Sksewell@umich.educonst unsigned TCSTATUS_RNST_LO = 23;
874661Sksewell@umich.educonst unsigned TCSTATUS_TDS = 21;
884661Sksewell@umich.educonst unsigned TCSTATUS_DT = 20;
894661Sksewell@umich.educonst unsigned TCSTATUS_DA = 15;
904661Sksewell@umich.educonst unsigned TCSTATUS_A = 13;
914661Sksewell@umich.educonst unsigned TCSTATUS_TKSU_HI = 12;
924661Sksewell@umich.educonst unsigned TCSTATUS_TKSU_LO = 11;
934661Sksewell@umich.educonst unsigned TCSTATUS_IXMT = 7;
944661Sksewell@umich.educonst unsigned TCSTATUS_ASID_HI = 7;
954661Sksewell@umich.educonst unsigned TCSTATUS_ASID_LO = 7;
964661Sksewell@umich.edu
974661Sksewell@umich.edu//TCHalt
984661Sksewell@umich.educonst unsigned TCH_H = 0;
994661Sksewell@umich.edu
1004661Sksewell@umich.edu//Status
1014661Sksewell@umich.educonst unsigned S_CU_HI = 31;
1024661Sksewell@umich.educonst unsigned S_CU_LO = 28;
1034661Sksewell@umich.educonst unsigned S_MX = 24;
1044661Sksewell@umich.educonst unsigned S_KSU_HI = 4;
1054661Sksewell@umich.educonst unsigned S_KSU_LO = 3;
1064661Sksewell@umich.edu
1074661Sksewell@umich.edu// Config0
1084661Sksewell@umich.educonst unsigned CFG_M = 31;
1094661Sksewell@umich.edu
1104661Sksewell@umich.edu// Config1
1114661Sksewell@umich.educonst unsigned CFG1_M = 31;
1124661Sksewell@umich.edu
1134661Sksewell@umich.edu// Config2
1144661Sksewell@umich.educonst unsigned CFG2_M = 31;
1154661Sksewell@umich.edu
1164661Sksewell@umich.edu// Config3
1174661Sksewell@umich.educonst unsigned CFG3_M = 31;
1184661Sksewell@umich.educonst unsigned CFG3_MT = 2;
1194661Sksewell@umich.edu
1204661Sksewell@umich.edu} // namespace MipsISA
1214661Sksewell@umich.edu
1224661Sksewell@umich.edu#endif
123