00001 /* 00002 * Copyright (C) 2005 Ondrej Palkovsky 00003 * All rights reserved. 00004 * 00005 * Redistribution and use in source and binary forms, with or without 00006 * modification, are permitted provided that the following conditions 00007 * are met: 00008 * 00009 * - Redistributions of source code must retain the above copyright 00010 * notice, this list of conditions and the following disclaimer. 00011 * - Redistributions in binary form must reproduce the above copyright 00012 * notice, this list of conditions and the following disclaimer in the 00013 * documentation and/or other materials provided with the distribution. 00014 * - The name of the author may not be used to endorse or promote products 00015 * derived from this software without specific prior written permission. 00016 * 00017 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 00018 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 00019 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 00020 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 00021 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 00022 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00023 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00024 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00025 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 00026 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00027 */ 00028 00035 #ifndef __mips32_REGNAME_H_ 00036 #define __mips32_REGNAME_H_ 00037 00038 #define zero 0 00039 #define at 1 00040 #define v0 2 00041 #define v1 3 00042 #define a0 4 00043 #define a1 5 00044 #define a2 6 00045 #define a3 7 00046 #define t0 8 00047 #define t1 9 00048 #define t2 10 00049 #define t3 11 00050 #define t4 12 00051 #define t5 13 00052 #define t6 14 00053 #define t7 15 00054 #define s0 16 00055 #define s1 17 00056 #define s2 18 00057 #define s3 19 00058 #define s4 20 00059 #define s5 21 00060 #define s6 22 00061 #define s7 23 00062 #define t8 24 00063 #define t9 25 00064 #define k0 26 00065 #define k1 27 00066 #define gp 28 00067 #define sp 29 00068 #define s8 30 00069 #define ra 31 00070 00071 #define rindex 0 00072 #define rrandom 1 00073 #define entrylo0 2 00074 #define entrylo1 3 00075 #define context 4 00076 #define pagemask 5 00077 #define wired 6 00078 #define badvaddr 8 00079 #define count 9 00080 #define entryhi 10 00081 #define compare 11 00082 #define status 12 00083 #define cause 13 00084 #define epc 14 00085 #define rconfig 16 00086 #define lladdr 17 00087 #define watchlo 18 00088 #define watchhi 19 00089 #define xcontext 20 00090 #define rdebug 23 00091 #define depc 24 00092 #define eepc 30 00093 00094 00095 #endif /* _REGNAME_H_ */ 00096