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

Subversion Repositories or1k

[/] [or1k/] [branches/] [oc/] [gdb-5.0/] [gdb/] [config/] [m88k/] [tm-cxux.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 106 markom
/* Target definitions for m88k running Harris CX/UX.
2
   Copyright 1993, 1994 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
#define HARRIS_TARGET 1
22
 
23
#define CXUX_TARGET 1
24
 
25
/* Type of X registers, as supplied by the OS */
26
 
27
typedef struct
28
  {
29
    long w1, w2, w3, w4;
30
  }
31
X_REGISTER_RAW_TYPE;
32
 
33
#define X_REGISTER_VIRTUAL_TYPE double
34
 
35
#include "m88k/tm-m88k.h"
36
 
37
#define ADD_SHARED_SYMBOL_FILES(args,have_tty)  add_shared_symbol_files ()
38
 
39
#define CONVERT_REGISTER_ADDRESS
40
 
41
/* Always allocate space for both, but recognize that the m88100 has no
42
   FP_REGS.  */
43
 
44
#undef ARCH_NUM_REGS
45
#define ARCH_NUM_REGS (target_is_m88110 ? (GP_REGS + FP_REGS) : (GP_REGS))
46
 
47
/* Don't need this grotesquerie.  */
48
 
49
#undef SHIFT_INST_REGS
50
 
51
/* Extended registers are treated as 16 bytes by Harris' OS's.
52
   We treat them as 16 bytes here for consistency's sake.  */
53
 
54
#undef REGISTER_RAW_SIZE
55
#define REGISTER_RAW_SIZE(N) ((N) < XFP_REGNUM ? 4 : 16)
56
 
57
#undef REGISTER_BYTE
58
#define REGISTER_BYTE(N) \
59
  ((N) >= XFP_REGNUM \
60
   ? (((GP_REGS) * REGISTER_RAW_SIZE(0)) + \
61
      (((N) - XFP_REGNUM) * REGISTER_RAW_SIZE(XFP_REGNUM))) \
62
   : ((N) * REGISTER_RAW_SIZE(0)))

powered by: WebSVN 2.1.0

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