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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [config/] [m68k/] [tm-es1800.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/* Parameters for execution on ES-1800 emulator for 68000.
2
   The code was originally written by Johan Holmberg TT/SJ Ericsson Telecom
3
   AB and later modified by Johan Henriksson TT/SJ. It was adapted to GDB 4.0
4
   by Jan Norden TX/DK.
5
   Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1996, 2000
6
   Free Software Foundation, Inc.
7
 
8
   This file is part of GDB.
9
 
10
   GDB is free software; you can redistribute it and/or modify
11
   it under the terms of the GNU General Public License as published by
12
   the Free Software Foundation; either version 1, or (at your option)
13
   any later version.
14
 
15
   GDB is distributed in the hope that it will be useful,
16
   but WITHOUT ANY WARRANTY; without even the implied warranty of
17
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
   GNU General Public License for more details.
19
 
20
   You should have received a copy of the GNU General Public License
21
   along with this program; if not, write to the Free Software
22
   Foundation, Inc., 59 Temple Place - Suite 330,
23
   Boston, MA 02111-1307, USA.  */
24
 
25
#define GDBINIT_FILENAME        ".esgdbinit"
26
 
27
#define DEFAULT_PROMPT          "(esgdb) "
28
 
29
#include "m68k/tm-m68k.h"
30
 
31
/* Longjmp stuff borrowed from sun3 configuration.  Don't know if correct.
32
   FIXME.  */
33
/* Offsets (in target ints) into jmp_buf.  Not defined by Sun, but at least
34
   documented in a comment in <machine/setjmp.h>! */
35
 
36
#define JB_ELEMENT_SIZE 4
37
 
38
#define JB_ONSSTACK 0
39
#define JB_SIGMASK 1
40
#define JB_SP 2
41
#define JB_PC 3
42
#define JB_PSL 4
43
#define JB_D2 5
44
#define JB_D3 6
45
#define JB_D4 7
46
#define JB_D5 8
47
#define JB_D6 9
48
#define JB_D7 10
49
#define JB_A2 11
50
#define JB_A3 12
51
#define JB_A4 13
52
#define JB_A5 14
53
#define JB_A6 15
54
 
55
/* Figure out where the longjmp will land.  Slurp the args out of the stack.
56
   We expect the first arg to be a pointer to the jmp_buf structure from which
57
   we extract the pc (JB_PC) that we will land at.  The pc is copied into ADDR.
58
   This routine returns true on success */
59
 
60
#define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)

powered by: WebSVN 2.1.0

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