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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [config/] [ns32k/] [xm-merlin.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/* OBSOLETE /* Definitions to make GDB run on a merlin under utek 2.1 */
2
/* OBSOLETE    Copyright 1986, 1987, 1989, 1991, 1992, 1993, 2001 */
3
/* OBSOLETE    Free Software Foundation, Inc. */
4
/* OBSOLETE  */
5
/* OBSOLETE    This file is part of GDB. */
6
/* OBSOLETE  */
7
/* OBSOLETE    This program is free software; you can redistribute it and/or modify */
8
/* OBSOLETE    it under the terms of the GNU General Public License as published by */
9
/* OBSOLETE    the Free Software Foundation; either version 2 of the License, or */
10
/* OBSOLETE    (at your option) any later version. */
11
/* OBSOLETE  */
12
/* OBSOLETE    This program is distributed in the hope that it will be useful, */
13
/* OBSOLETE    but WITHOUT ANY WARRANTY; without even the implied warranty of */
14
/* OBSOLETE    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the */
15
/* OBSOLETE    GNU General Public License for more details. */
16
/* OBSOLETE  */
17
/* OBSOLETE    You should have received a copy of the GNU General Public License */
18
/* OBSOLETE    along with this program; if not, write to the Free Software */
19
/* OBSOLETE    Foundation, Inc., 59 Temple Place - Suite 330, */
20
/* OBSOLETE    Boston, MA 02111-1307, USA.  */ */
21
/* OBSOLETE  */
22
/* OBSOLETE #include <machine/reg.h> */
23
/* OBSOLETE  */
24
/* OBSOLETE /* This machine doesn't have the siginterrupt call.  */ */
25
/* OBSOLETE #define NO_SIGINTERRUPT */
26
/* OBSOLETE  */
27
/* OBSOLETE /* Under Utek, a ptrace'd process can be the only active process for */
28
/* OBSOLETE    an executable.  Therefore instead of /bin/sh use gdb-sh (which should */
29
/* OBSOLETE    just be a copy of /bin/sh which is world readable and writeable).  */ */
30
/* OBSOLETE /* FIXME: name should be passed in from Makefile so it can use prefix.  */ */
31
/* OBSOLETE #define SHELL_FILE "/usr/local/lib/gdb-sh" */
32
/* OBSOLETE  */
33
/* OBSOLETE #define HOST_BYTE_ORDER LITTLE_ENDIAN */
34
/* OBSOLETE  */
35
/* OBSOLETE /* This is the amount to subtract from u.u_ar0 */
36
/* OBSOLETE    to get the offset in the core file of the register values.  */ */
37
/* OBSOLETE  */
38
/* OBSOLETE #define KERNEL_U_ADDR (0xfef000) */
39
/* OBSOLETE  */
40
/* OBSOLETE #define REGISTER_U_ADDR(addr, blockend, regno) \ */
41
/* OBSOLETE {                                                                   \ */
42
/* OBSOLETE   switch (regno) {                                                  \ */
43
/* OBSOLETE   case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7:   \ */
44
/* OBSOLETE     addr = blockend + (R0 - regno) * sizeof (int); break;           \ */
45
/* OBSOLETE   case PC_REGNUM:                                                   \ */
46
/* OBSOLETE     addr = blockend + PC * sizeof (int); break;                     \ */
47
/* OBSOLETE   case SP_REGNUM:                                                   \ */
48
/* OBSOLETE     addr = blockend + SP * sizeof (int); break;                     \ */
49
/* OBSOLETE   case FP_REGNUM:                                                   \ */
50
/* OBSOLETE     addr = blockend + FP * sizeof (int); break;                     \ */
51
/* OBSOLETE   case PS_REGNUM:                                                   \ */
52
/* OBSOLETE     addr = blockend + 12 * sizeof (int); break;                     \ */
53
/* OBSOLETE   case FPS_REGNUM:                                                  \ */
54
/* OBSOLETE     addr = 108; break;                                              \ */
55
/* OBSOLETE   case FP0_REGNUM + 0: case FP0_REGNUM + 1:                         \ */
56
/* OBSOLETE   case FP0_REGNUM + 2: case FP0_REGNUM + 3:                                 \ */
57
/* OBSOLETE   case FP0_REGNUM + 4: case FP0_REGNUM + 5:                                 \ */
58
/* OBSOLETE   case FP0_REGNUM + 6: case FP0_REGNUM + 7:                                 \ */
59
/* OBSOLETE     addr = 76 + (regno - FP0_REGNUM) * sizeof (float); break;       \ */
60
/* OBSOLETE   case LP0_REGNUM + 0: case LP0_REGNUM + 1:                         \ */
61
/* OBSOLETE   case LP0_REGNUM + 2: case LP0_REGNUM + 3:                         \ */
62
/* OBSOLETE     addr = 76 + (regno - LP0_REGNUM) * sizeof (double); break;      \ */
63
/* OBSOLETE   default:                                                          \ */
64
/* OBSOLETE     printf ("bad argument to REGISTER_U_ADDR %d\n", regno);         \ */
65
/* OBSOLETE     internal_error (__FILE__, __LINE__, "failed internal consistency check");                                                       \ */
66
/* OBSOLETE   }                                                                 \ */
67
/* OBSOLETE } */

powered by: WebSVN 2.1.0

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