2003-09-22 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / config / sparc / tm-sparclite.h
1 // OBSOLETE /* Macro definitions for GDB for a Fujitsu SPARClite.
2 // OBSOLETE Copyright 1993, 1994, 1995, 1998, 1999, 2000, 2001, 2002, 2003
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 "regcache.h"
23 // OBSOLETE
24 // OBSOLETE #define TARGET_SPARCLITE 1 /* Still needed for non-multi-arch case */
25 // OBSOLETE
26 // OBSOLETE #include "sparc/tm-sparc.h"
27 // OBSOLETE
28 // OBSOLETE /* Note: we are not defining GDB_MULTI_ARCH for the sparclet target
29 // OBSOLETE at this time, because we have not figured out how to detect the
30 // OBSOLETE sparclet target from the bfd structure. */
31 // OBSOLETE
32 // OBSOLETE /* Sparclite regs, for debugging purposes */
33 // OBSOLETE
34 // OBSOLETE enum {
35 // OBSOLETE DIA1_REGNUM = 72, /* debug instr address register 1 */
36 // OBSOLETE DIA2_REGNUM = 73, /* debug instr address register 2 */
37 // OBSOLETE DDA1_REGNUM = 74, /* debug data address register 1 */
38 // OBSOLETE DDA2_REGNUM = 75, /* debug data address register 2 */
39 // OBSOLETE DDV1_REGNUM = 76, /* debug data value register 1 */
40 // OBSOLETE DDV2_REGNUM = 77, /* debug data value register 2 */
41 // OBSOLETE DCR_REGNUM = 78, /* debug control register */
42 // OBSOLETE DSR_REGNUM = 79 /* debug status regsiter */
43 // OBSOLETE };
44 // OBSOLETE
45 // OBSOLETE /* overrides of tm-sparc.h */
46 // OBSOLETE
47 // OBSOLETE #undef TARGET_BYTE_ORDER
48 // OBSOLETE
49 // OBSOLETE /* Select the sparclite disassembler. Slightly different instruction set from
50 // OBSOLETE the V8 sparc. */
51 // OBSOLETE
52 // OBSOLETE #undef TM_PRINT_INSN_MACH
53 // OBSOLETE #define TM_PRINT_INSN_MACH bfd_mach_sparc_sparclite
54 // OBSOLETE
55 // OBSOLETE /* Amount PC must be decremented by after a hardware instruction breakpoint.
56 // OBSOLETE This is often the number of bytes in BREAKPOINT
57 // OBSOLETE but not always. */
58 // OBSOLETE
59 // OBSOLETE #define DECR_PC_AFTER_HW_BREAK 4
60 // OBSOLETE
61 // OBSOLETE #if !defined (GDB_MULTI_ARCH) || (GDB_MULTI_ARCH == 0)
62 // OBSOLETE /*
63 // OBSOLETE * The following defines must go away for MULTI_ARCH.
64 // OBSOLETE */
65 // OBSOLETE
66 // OBSOLETE #undef NUM_REGS
67 // OBSOLETE #define NUM_REGS 80
68 // OBSOLETE
69 // OBSOLETE #undef REGISTER_BYTES
70 // OBSOLETE #define REGISTER_BYTES (32*4+32*4+8*4+8*4)
71 // OBSOLETE
72 // OBSOLETE #undef REGISTER_NAMES
73 // OBSOLETE #define REGISTER_NAMES \
74 // OBSOLETE { "g0", "g1", "g2", "g3", "g4", "g5", "g6", "g7", \
75 // OBSOLETE "o0", "o1", "o2", "o3", "o4", "o5", "sp", "o7", \
76 // OBSOLETE "l0", "l1", "l2", "l3", "l4", "l5", "l6", "l7", \
77 // OBSOLETE "i0", "i1", "i2", "i3", "i4", "i5", "fp", "i7", \
78 // OBSOLETE \
79 // OBSOLETE "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", \
80 // OBSOLETE "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", \
81 // OBSOLETE "f16", "f17", "f18", "f19", "f20", "f21", "f22", "f23", \
82 // OBSOLETE "f24", "f25", "f26", "f27", "f28", "f29", "f30", "f31", \
83 // OBSOLETE \
84 // OBSOLETE "y", "psr", "wim", "tbr", "pc", "npc", "fpsr", "cpsr", \
85 // OBSOLETE "dia1", "dia2", "dda1", "dda2", "ddv1", "ddv2", "dcr", "dsr" }
86 // OBSOLETE
87 // OBSOLETE #define DIA1_REGNUM 72 /* debug instr address register 1 */
88 // OBSOLETE #define DIA2_REGNUM 73 /* debug instr address register 2 */
89 // OBSOLETE #define DDA1_REGNUM 74 /* debug data address register 1 */
90 // OBSOLETE #define DDA2_REGNUM 75 /* debug data address register 2 */
91 // OBSOLETE #define DDV1_REGNUM 76 /* debug data value register 1 */
92 // OBSOLETE #define DDV2_REGNUM 77 /* debug data value register 2 */
93 // OBSOLETE #define DCR_REGNUM 78 /* debug control register */
94 // OBSOLETE #define DSR_REGNUM 79 /* debug status regsiter */
95 // OBSOLETE
96 // OBSOLETE #endif /* GDB_MULTI_ARCH */
97 // OBSOLETE
98 // OBSOLETE #define TARGET_HW_BREAK_LIMIT 2
99 // OBSOLETE #define TARGET_HW_WATCH_LIMIT 2
100 // OBSOLETE
101 // OBSOLETE /* Enable watchpoint macro's */
102 // OBSOLETE
103 // OBSOLETE #define TARGET_HAS_HARDWARE_WATCHPOINTS
104 // OBSOLETE
105 // OBSOLETE #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \
106 // OBSOLETE sparclite_check_watch_resources (type, cnt, ot)
107 // OBSOLETE
108 // OBSOLETE /* When a hardware watchpoint fires off the PC will be left at the
109 // OBSOLETE instruction which caused the watchpoint. It will be necessary for
110 // OBSOLETE GDB to step over the watchpoint. ***
111 // OBSOLETE
112 // OBSOLETE #define STOPPED_BY_WATCHPOINT(W) \
113 // OBSOLETE ((W).kind == TARGET_WAITKIND_STOPPED \
114 // OBSOLETE && (W).value.sig == TARGET_SIGNAL_TRAP \
115 // OBSOLETE && ((int) read_register (IPSW_REGNUM) & 0x00100000))
116 // OBSOLETE */
117 // OBSOLETE
118 // OBSOLETE /* Use these macros for watchpoint insertion/deletion. */
119 // OBSOLETE #define target_insert_watchpoint(addr, len, type) sparclite_insert_watchpoint (addr, len, type)
120 // OBSOLETE #define target_remove_watchpoint(addr, len, type) sparclite_remove_watchpoint (addr, len, type)
121 // OBSOLETE #define target_insert_hw_breakpoint(addr, len) sparclite_insert_hw_breakpoint (addr, len)
122 // OBSOLETE #define target_remove_hw_breakpoint(addr, len) sparclite_remove_hw_breakpoint (addr, len)
123 // OBSOLETE #define target_stopped_data_address() sparclite_stopped_data_address()
This page took 0.03973 seconds and 4 git commands to generate.