OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [gdb/] [config/] [mips/] [tm-mipsm3.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
/* Definitions to make GDB run on a mips box under Mach 3.0
2
   Copyright 1992, 1993, 1998 Free Software Foundation, Inc.
3
 
4
   This file is part of GDB.
5
 
6
   This program is free software; you can redistribute it and/or modify
7
   it under the terms of the GNU General Public License as published by
8
   the Free Software Foundation; either version 2 of the License, or
9
   (at your option) any later version.
10
 
11
   This program is distributed in the hope that it will be useful,
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
13
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
   GNU General Public License for more details.
15
 
16
   You should have received a copy of the GNU General Public License
17
   along with this program; if not, write to the Free Software
18
   Foundation, Inc., 59 Temple Place - Suite 330,
19
   Boston, MA 02111-1307, USA.  */
20
 
21
/* Mach specific definitions for little endian mips (e.g. pmax)
22
 * running Mach 3.0
23
 *
24
 * Author: Jukka Virtanen <jtv@hut.fi>
25
 */
26
 
27
/* Include common definitions for Mach3 systems */
28
#include "config/nm-m3.h"
29
 
30
/* Define offsets to access CPROC stack when it does not have
31
 * a kernel thread.
32
 */
33
 
34
/* From mk/user/threads/mips/csw.s */
35
#define SAVED_FP        (12*4)
36
#define SAVED_PC        (13*4)
37
#define SAVED_BYTES     (14*4)
38
 
39
/* Using these, define our offsets to items strored in
40
 * cproc_switch in csw.s
41
 */
42
#define MACHINE_CPROC_SP_OFFSET SAVED_BYTES
43
#define MACHINE_CPROC_PC_OFFSET SAVED_PC
44
#define MACHINE_CPROC_FP_OFFSET SAVED_FP
45
 
46
/* Thread flavors used in setting the Trace state.
47
 
48
 * In <mach/machine/thread_status.h>
49
 */
50
#define TRACE_FLAVOR            MIPS_EXC_STATE
51
#define TRACE_FLAVOR_SIZE       MIPS_EXC_STATE_COUNT
52
#define TRACE_SET(x,state)      ((struct mips_exc_state *)state)->cause = EXC_SST;
53
#define TRACE_CLEAR(x,state)    0
54
 
55
/* Mach supports attach/detach */
56
#define ATTACH_DETACH 1
57
 
58
#include "mips/tm-mips.h"
59
 
60
/* Address of end of user stack space.
61
 * for MACH, see <machine/vmparam.h>
62
 */
63
#undef  STACK_END_ADDR
64
#define STACK_END_ADDR USRSTACK
65
 
66
/* Output registers in tabular format */
67
#define TABULAR_REGISTER_OUTPUT

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.