1997-06-15 21:37:45 +04:00
|
|
|
/* $NetBSD: reg.h,v 1.7 1997/06/15 17:37:45 mhitch Exp $ */
|
1994-10-27 00:08:38 +03:00
|
|
|
|
1993-10-12 06:22:19 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 1988 University of Utah.
|
1994-05-27 12:40:50 +04:00
|
|
|
* Copyright (c) 1992, 1993
|
|
|
|
* The Regents of the University of California. All rights reserved.
|
1993-10-12 06:22:19 +03:00
|
|
|
*
|
|
|
|
* This code is derived from software contributed to Berkeley by
|
|
|
|
* the Systems Programming Group of the University of Utah Computer
|
|
|
|
* Science Department and Ralph Campbell.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* This product includes software developed by the University of
|
|
|
|
* California, Berkeley and its contributors.
|
|
|
|
* 4. Neither the name of the University nor the names of its contributors
|
|
|
|
* may be used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
* from: Utah Hdr: reg.h 1.1 90/07/09
|
1994-05-27 12:40:50 +04:00
|
|
|
*
|
1994-10-27 00:08:38 +03:00
|
|
|
* @(#)reg.h 8.2 (Berkeley) 1/11/94
|
1993-10-12 06:22:19 +03:00
|
|
|
*/
|
|
|
|
|
1995-12-20 05:00:23 +03:00
|
|
|
#ifndef _MACHINE_REG_H_
|
|
|
|
#define _MACHINE_REG_H_
|
1994-05-27 12:40:50 +04:00
|
|
|
|
|
|
|
struct reg {
|
1997-06-15 21:37:45 +04:00
|
|
|
int r_regs[38];
|
1994-05-27 12:40:50 +04:00
|
|
|
};
|
1997-06-15 21:37:45 +04:00
|
|
|
|
|
|
|
struct fpreg {
|
|
|
|
int r_regs[33];
|
|
|
|
};
|
|
|
|
|
|
|
|
#define ZERO 0
|
|
|
|
#define AST 1
|
|
|
|
#define V0 2
|
|
|
|
#define V1 3
|
|
|
|
#define A0 4
|
|
|
|
#define A1 5
|
|
|
|
#define A2 6
|
|
|
|
#define A3 7
|
|
|
|
#define T0 8
|
|
|
|
#define T1 9
|
|
|
|
#define T2 10
|
|
|
|
#define T3 11
|
|
|
|
#define T4 12
|
|
|
|
#define T5 13
|
|
|
|
#define T6 14
|
|
|
|
#define T7 15
|
|
|
|
#define S0 16
|
|
|
|
#define S1 17
|
|
|
|
#define S2 18
|
|
|
|
#define S3 19
|
|
|
|
#define S4 20
|
|
|
|
#define S5 21
|
|
|
|
#define S6 22
|
|
|
|
#define S7 23
|
|
|
|
#define T8 24
|
|
|
|
#define T9 25
|
|
|
|
#define K0 26
|
|
|
|
#define K1 27
|
|
|
|
#define GP 28
|
|
|
|
#define SP 29
|
|
|
|
#define S8 30
|
|
|
|
#define RA 31
|
|
|
|
#define SR 32
|
|
|
|
#define PS SR /* alias for SR */
|
|
|
|
#define MULLO 33
|
|
|
|
#define MULHI 34
|
|
|
|
#define BADVADDR 35
|
|
|
|
#define CAUSE 36
|
|
|
|
#define PC 37
|
|
|
|
|
1995-12-20 05:00:23 +03:00
|
|
|
#endif /*_MACHINE_REG_H_*/
|