1 /* Target dependent code for the Fujitsu SPARClite for GDB, the GNU debugger.
2 Copyright 1994, 1995, 1996, 1999 Free Software Foundation, Inc.
4 This file is part of GDB.
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.
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.
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, Boston, MA 02111-1307, USA. */
22 #include "breakpoint.h"
25 #include <sys/types.h>
27 #ifdef HAVE_SYS_SELECT_H
28 #include <sys/select.h>
31 #if (!defined(__GO32__) && !defined(_WIN32)) || defined(__CYGWIN32__)
35 #include <sys/socket.h>
36 #include <netinet/in.h>
40 extern struct target_ops sparclite_ops
; /* Forward decl */
41 extern struct target_ops remote_ops
;
43 static char *remote_target_name
= NULL
;
44 static serial_t remote_desc
= NULL
;
45 static int serial_flag
;
47 static int udp_fd
= -1;
50 static serial_t open_tty
PARAMS ((char *name
));
51 static int send_resp
PARAMS ((serial_t desc
, char c
));
52 static void close_tty
PARAMS ((int ignore
));
54 static int recv_udp_buf
PARAMS ((int fd
, unsigned char *buf
, int len
, int timeout
));
55 static int send_udp_buf
PARAMS ((int fd
, unsigned char *buf
, int len
));
57 static void sparclite_open
PARAMS ((char *name
, int from_tty
));
58 static void sparclite_close
PARAMS ((int quitting
));
59 static void download
PARAMS ((char *target_name
, char *args
, int from_tty
,
60 void (*write_routine
) (bfd
*from_bfd
,
63 bfd_vma to_addr
, int len
),
64 void (*start_routine
) (bfd_vma entry
)));
65 static void sparclite_serial_start
PARAMS ((bfd_vma entry
));
66 static void sparclite_serial_write
PARAMS ((bfd
*from_bfd
, asection
*from_sec
,
68 bfd_vma to_addr
, int len
));
70 static unsigned short calc_checksum
PARAMS ((unsigned char *buffer
,
72 static void sparclite_udp_start
PARAMS ((bfd_vma entry
));
73 static void sparclite_udp_write
PARAMS ((bfd
*from_bfd
, asection
*from_sec
,
74 file_ptr from_addr
, bfd_vma to_addr
,
77 static void sparclite_download
PARAMS ((char *filename
, int from_tty
));
79 #define DDA2_SUP_ASI 0xb000000
80 #define DDA1_SUP_ASI 0xb0000
82 #define DDA2_ASI_MASK 0xff000000
83 #define DDA1_ASI_MASK 0xff0000
84 #define DIA2_SUP_MODE 0x8000
85 #define DIA1_SUP_MODE 0x4000
86 #define DDA2_ENABLE 0x100
87 #define DDA1_ENABLE 0x80
88 #define DIA2_ENABLE 0x40
89 #define DIA1_ENABLE 0x20
90 #define DSINGLE_STEP 0x10 /* not used */
91 #define DDV_TYPE_MASK 0xc
92 #define DDV_TYPE_LOAD 0x0
93 #define DDV_TYPE_STORE 0x4
94 #define DDV_TYPE_ACCESS 0x8
95 #define DDV_TYPE_ALWAYS 0xc
100 sparclite_insert_watchpoint (addr
, len
, type
)
107 dcr
= read_register (DCR_REGNUM
);
109 if (!(dcr
& DDA1_ENABLE
))
111 write_register (DDA1_REGNUM
, addr
);
112 dcr
&= ~(DDA1_ASI_MASK
| DDV_TYPE_MASK
);
113 dcr
|= (DDA1_SUP_ASI
| DDA1_ENABLE
);
116 write_register (DDV1_REGNUM
, 0);
117 write_register (DDV2_REGNUM
, 0xffffffff);
118 dcr
|= (DDV_TYPE_LOAD
& (~DDV_COND
& ~DDV_MASK
));
122 write_register (DDV1_REGNUM
, 0);
123 write_register (DDV2_REGNUM
, 0xffffffff);
124 dcr
|= (DDV_TYPE_STORE
& (~DDV_COND
& ~DDV_MASK
));
128 write_register (DDV1_REGNUM
, 0);
129 write_register (DDV2_REGNUM
, 0xffffffff);
130 dcr
|= (DDV_TYPE_ACCESS
);
132 write_register (DCR_REGNUM
, dcr
);
134 else if (!(dcr
& DDA2_ENABLE
))
136 write_register (DDA2_REGNUM
, addr
);
137 dcr
&= ~(DDA2_ASI_MASK
& DDV_TYPE_MASK
);
138 dcr
|= (DDA2_SUP_ASI
| DDA2_ENABLE
);
141 write_register (DDV1_REGNUM
, 0);
142 write_register (DDV2_REGNUM
, 0xffffffff);
143 dcr
|= (DDV_TYPE_LOAD
& ~DDV_COND
& ~DDV_MASK
);
147 write_register (DDV1_REGNUM
, 0);
148 write_register (DDV2_REGNUM
, 0xffffffff);
149 dcr
|= (DDV_TYPE_STORE
& ~DDV_COND
& ~DDV_MASK
);
153 write_register (DDV1_REGNUM
, 0);
154 write_register (DDV2_REGNUM
, 0xffffffff);
155 dcr
|= (DDV_TYPE_ACCESS
);
157 write_register (DCR_REGNUM
, dcr
);
166 sparclite_remove_watchpoint (addr
, len
, type
)
171 CORE_ADDR dcr
, dda1
, dda2
;
173 dcr
= read_register (DCR_REGNUM
);
174 dda1
= read_register (DDA1_REGNUM
);
175 dda2
= read_register (DDA2_REGNUM
);
177 if ((dcr
& DDA1_ENABLE
) && addr
== dda1
)
178 write_register (DCR_REGNUM
, (dcr
& ~DDA1_ENABLE
));
179 else if ((dcr
& DDA2_ENABLE
) && addr
== dda2
)
180 write_register (DCR_REGNUM
, (dcr
& ~DDA2_ENABLE
));
188 sparclite_insert_hw_breakpoint (addr
, len
)
194 dcr
= read_register (DCR_REGNUM
);
196 if (!(dcr
& DIA1_ENABLE
))
198 write_register (DIA1_REGNUM
, addr
);
199 write_register (DCR_REGNUM
, (dcr
| DIA1_ENABLE
| DIA1_SUP_MODE
));
201 else if (!(dcr
& DIA2_ENABLE
))
203 write_register (DIA2_REGNUM
, addr
);
204 write_register (DCR_REGNUM
, (dcr
| DIA2_ENABLE
| DIA2_SUP_MODE
));
213 sparclite_remove_hw_breakpoint (addr
, shadow
)
217 CORE_ADDR dcr
, dia1
, dia2
;
219 dcr
= read_register (DCR_REGNUM
);
220 dia1
= read_register (DIA1_REGNUM
);
221 dia2
= read_register (DIA2_REGNUM
);
223 if ((dcr
& DIA1_ENABLE
) && addr
== dia1
)
224 write_register (DCR_REGNUM
, (dcr
& ~DIA1_ENABLE
));
225 else if ((dcr
& DIA2_ENABLE
) && addr
== dia2
)
226 write_register (DCR_REGNUM
, (dcr
& ~DIA2_ENABLE
));
234 sparclite_check_watch_resources (type
, cnt
, ot
)
239 /* Watchpoints not supported on simulator. */
240 if (strcmp (target_shortname
, "sim") == 0)
243 if (type
== bp_hardware_breakpoint
)
245 if (TARGET_HW_BREAK_LIMIT
== 0)
247 else if (cnt
<= TARGET_HW_BREAK_LIMIT
)
252 if (TARGET_HW_WATCH_LIMIT
== 0)
256 else if (cnt
<= TARGET_HW_WATCH_LIMIT
)
263 sparclite_stopped_data_address ()
265 CORE_ADDR dsr
, dda1
, dda2
;
267 dsr
= read_register (DSR_REGNUM
);
268 dda1
= read_register (DDA1_REGNUM
);
269 dda2
= read_register (DDA2_REGNUM
);
285 desc
= SERIAL_OPEN (name
);
287 perror_with_name (name
);
291 if (SERIAL_SETBAUDRATE (desc
, baud_rate
))
294 perror_with_name (name
);
300 SERIAL_FLUSH_INPUT (desc
);
305 /* Read a single character from the remote end, masking it down to 7 bits. */
308 readchar (desc
, timeout
)
315 ch
= SERIAL_READCHAR (desc
, timeout
);
320 error ("SPARClite remote connection closed");
322 perror_with_name ("SPARClite communication error");
324 error ("SPARClite remote timeout");
326 if (remote_debug
> 0)
328 sprintf (s
, "[%02x]", ch
& 0xff);
329 puts_debug ("read -->", s
, "<--");
336 debug_serial_write (desc
, buf
, len
)
343 SERIAL_WRITE (desc
, buf
, len
);
344 if (remote_debug
> 0)
348 sprintf (s
, "[%02x]", *buf
& 0xff);
349 puts_debug ("Sent -->", s
, "<--");
361 debug_serial_write (desc
, &c
, 1);
362 return readchar (desc
, remote_timeout
);
372 SERIAL_CLOSE (remote_desc
);
379 recv_udp_buf (fd
, buf
, len
, timeout
)
388 FD_SET (fd
, &readfds
);
392 struct timeval timebuf
;
394 timebuf
.tv_sec
= timeout
;
396 cc
= select (fd
+ 1, &readfds
, 0, 0, &timebuf
);
399 cc
= select (fd
+ 1, &readfds
, 0, 0, 0);
405 perror_with_name ("recv_udp_buf: Bad return value from select:");
407 cc
= recv (fd
, buf
, len
, 0);
410 perror_with_name ("Got an error from recv: ");
414 send_udp_buf (fd
, buf
, len
)
420 cc
= send (fd
, buf
, len
, 0);
426 perror_with_name ("Got an error from send: ");
428 error ("Short count in send: tried %d, sent %d\n", len
, cc
);
430 #endif /* HAVE_SOCKETS */
433 sparclite_open (name
, from_tty
)
437 struct cleanup
*old_chain
;
442 error ("You need to specify what device or hostname is associated with the SparcLite board.");
444 target_preopen (from_tty
);
446 unpush_target (&sparclite_ops
);
448 if (remote_target_name
)
449 free (remote_target_name
);
451 remote_target_name
= strsave (name
);
453 /* We need a 'serial' or 'udp' keyword to disambiguate host:port, which can
454 mean either a serial port on a terminal server, or the IP address of a
455 SPARClite demo board. If there's no colon, then it pretty much has to be
456 a local device (except for DOS... grrmble) */
458 p
= strchr (name
, ' ');
463 while ((*p
!= '\000') && isspace (*p
)) p
++;
465 if (strncmp (name
, "serial", strlen (name
)) == 0)
467 else if (strncmp (name
, "udp", strlen (name
)) == 0)
470 error ("Must specify either `serial' or `udp'.");
476 if (!strchr (name
, ':'))
477 serial_flag
= 1; /* No colon is unambiguous (local device) */
479 error ("Usage: target sparclite serial /dev/ttyb\n\
480 or: target sparclite udp host");
485 remote_desc
= open_tty (p
);
487 old_chain
= make_cleanup ((make_cleanup_func
) close_tty
, 0);
489 c
= send_resp (remote_desc
, 0x00);
492 error ("Unknown response (0x%x) from SparcLite. Try resetting the board.",
495 c
= send_resp (remote_desc
, 0x55);
498 error ("Sparclite appears to be ill.");
504 struct sockaddr_in sockaddr
;
505 unsigned char buffer
[100];
508 /* Setup the socket. Must be raw UDP. */
510 he
= gethostbyname (p
);
513 error ("No such host %s.", p
);
515 udp_fd
= socket (PF_INET
, SOCK_DGRAM
, 0);
517 old_chain
= make_cleanup (close
, udp_fd
);
519 sockaddr
.sin_family
= PF_INET
;
520 sockaddr
.sin_port
= htons(7000);
521 memcpy (&sockaddr
.sin_addr
.s_addr
, he
->h_addr
, sizeof (struct in_addr
));
523 if (connect (udp_fd
, &sockaddr
, sizeof(sockaddr
)))
524 perror_with_name ("Connect failed");
529 send_udp_buf (udp_fd
, buffer
, 2); /* Request version */
530 cc
= recv_udp_buf (udp_fd
, buffer
, sizeof(buffer
), 5); /* Get response */
532 error ("SPARClite isn't responding.");
535 error ("SPARClite appears to be ill.");
537 error ("UDP downloading is not supported for DOS hosts.");
538 #endif /* HAVE_SOCKETS */
541 printf_unfiltered ("[SPARClite appears to be alive]\n");
543 push_target (&sparclite_ops
);
545 discard_cleanups (old_chain
);
551 sparclite_close (quitting
)
563 #define LOAD_ADDRESS 0x40000000
566 download (target_name
, args
, from_tty
, write_routine
, start_routine
)
570 void (*write_routine
) PARAMS ((bfd
*from_bfd
, asection
*from_sec
,
571 file_ptr from_addr
, bfd_vma to_addr
, int len
));
572 void (*start_routine
) PARAMS ((bfd_vma entry
));
574 struct cleanup
*old_chain
;
579 #define WRITESIZE 1024
588 while (*args
!= '\000')
592 while (isspace (*args
)) args
++;
596 while ((*args
!= '\000') && !isspace (*args
)) args
++;
603 else if (strncmp (arg
, "-quiet", strlen (arg
)) == 0)
605 else if (strncmp (arg
, "-nostart", strlen (arg
)) == 0)
608 error ("unknown option `%s'", arg
);
612 filename
= get_exec_file (1);
614 pbfd
= bfd_openr (filename
, gnutarget
);
617 perror_with_name (filename
);
620 old_chain
= make_cleanup ((make_cleanup_func
) bfd_close
, pbfd
);
622 if (!bfd_check_format (pbfd
, bfd_object
))
623 error ("\"%s\" is not an object file: %s", filename
,
624 bfd_errmsg (bfd_get_error ()));
626 for (section
= pbfd
->sections
; section
; section
= section
->next
)
628 if (bfd_get_section_flags (pbfd
, section
) & SEC_LOAD
)
630 bfd_vma section_address
;
631 bfd_size_type section_size
;
633 const char *section_name
;
635 section_name
= bfd_get_section_name(pbfd
, section
);
637 section_address
= bfd_get_section_vma (pbfd
, section
);
639 /* Adjust sections from a.out files, since they don't
640 carry their addresses with. */
641 if (bfd_get_flavour (pbfd
) == bfd_target_aout_flavour
)
643 if (strcmp (section_name
, ".text") == 0)
644 section_address
= bfd_get_start_address (pbfd
);
645 else if (strcmp (section_name
, ".data") == 0)
647 /* Read the first 8 bytes of the data section.
648 There should be the string 'DaTa' followed by
649 a word containing the actual section address. */
652 char signature
[4]; /* 'DaTa' */
653 unsigned char sdata
[4]; /* &sdata */
655 bfd_get_section_contents (pbfd
, section
, &marker
, 0,
657 if (strncmp (marker
.signature
, "DaTa", 4) == 0)
659 if (TARGET_BYTE_ORDER
== BIG_ENDIAN
)
660 section_address
= bfd_getb32 (marker
.sdata
);
662 section_address
= bfd_getl32 (marker
.sdata
);
667 section_size
= bfd_get_section_size_before_reloc (section
);
670 printf_filtered ("[Loading section %s at 0x%x (%d bytes)]\n",
671 bfd_get_section_name (pbfd
, section
),
676 while (section_size
> 0)
679 static char inds
[] = "|/-\\";
684 count
= min (section_size
, WRITESIZE
);
686 write_routine (pbfd
, section
, fptr
, section_address
, count
);
690 printf_unfiltered ("\r%c", inds
[k
++ % 4]);
691 gdb_flush (gdb_stdout
);
694 section_address
+= count
;
696 section_size
-= count
;
703 entry
= bfd_get_start_address (pbfd
);
706 printf_unfiltered ("[Starting %s at 0x%x]\n", filename
, entry
);
708 start_routine (entry
);
711 do_cleanups (old_chain
);
715 sparclite_serial_start (entry
)
722 store_unsigned_integer (buffer
+ 1, 4, entry
);
724 debug_serial_write (remote_desc
, buffer
, 1 + 4);
725 i
= readchar (remote_desc
, remote_timeout
);
727 error ("Can't start SparcLite. Error code %d\n", i
);
731 sparclite_serial_write (from_bfd
, from_sec
, from_addr
, to_addr
, len
)
738 char buffer
[4 + 4 + WRITESIZE
]; /* addr + len + data */
739 unsigned char checksum
;
742 store_unsigned_integer (buffer
, 4, to_addr
); /* Address */
743 store_unsigned_integer (buffer
+ 4, 4, len
); /* Length */
745 bfd_get_section_contents (from_bfd
, from_sec
, buffer
+ 8, from_addr
, len
);
748 for (i
= 0; i
< len
; i
++)
749 checksum
+= buffer
[8 + i
];
751 i
= send_resp (remote_desc
, 0x01);
754 error ("Bad response from load command (0x%x)", i
);
756 debug_serial_write (remote_desc
, buffer
, 4 + 4 + len
);
757 i
= readchar (remote_desc
, remote_timeout
);
760 error ("Bad checksum from load command (0x%x)", i
);
765 static unsigned short
766 calc_checksum (buffer
, count
)
767 unsigned char *buffer
;
770 unsigned short checksum
;
773 for (; count
> 0; count
-= 2, buffer
+= 2)
774 checksum
+= (*buffer
<< 8) | *(buffer
+ 1);
777 checksum
+= *buffer
<< 8;
783 sparclite_udp_start (entry
)
786 unsigned char buffer
[6];
791 buffer
[2] = entry
>> 24;
792 buffer
[3] = entry
>> 16;
793 buffer
[4] = entry
>> 8;
796 send_udp_buf (udp_fd
, buffer
, 6); /* Send start addr */
797 i
= recv_udp_buf (udp_fd
, buffer
, sizeof(buffer
), -1); /* Get response */
799 if (i
< 1 || buffer
[0] != 0x55)
800 error ("Failed to take start address.");
804 sparclite_udp_write (from_bfd
, from_sec
, from_addr
, to_addr
, len
)
811 unsigned char buffer
[2000];
812 unsigned short checksum
;
813 static int pkt_num
= 0;
814 static unsigned long old_addr
= -1;
819 if (to_addr
!= old_addr
)
821 buffer
[0] = 0x1; /* Load command */
822 buffer
[1] = 0x1; /* Loading address */
823 buffer
[2] = to_addr
>> 24;
824 buffer
[3] = to_addr
>> 16;
825 buffer
[4] = to_addr
>> 8;
829 for (i
= 0; i
< 6; i
++)
830 checksum
+= buffer
[i
];
833 send_udp_buf (udp_fd
, buffer
, 6);
834 i
= recv_udp_buf (udp_fd
, buffer
, sizeof buffer
, -1);
837 error ("Got back short checksum for load addr.");
839 if (checksum
!= buffer
[0])
840 error ("Got back bad checksum for load addr.");
842 pkt_num
= 0; /* Load addr resets packet seq # */
846 bfd_get_section_contents (from_bfd
, from_sec
, buffer
+ 6, from_addr
,
849 checksum
= calc_checksum (buffer
+ 6, len
);
851 buffer
[0] = 0x1; /* Load command */
852 buffer
[1] = 0x2; /* Loading data */
853 buffer
[2] = pkt_num
>> 8;
855 buffer
[4] = checksum
>> 8;
856 buffer
[5] = checksum
;
858 send_udp_buf (udp_fd
, buffer
, len
+ 6);
859 i
= recv_udp_buf (udp_fd
, buffer
, sizeof buffer
, 3);
863 fprintf_unfiltered (gdb_stderr
, "send_data: timeout sending %d bytes to address 0x%x retrying\n", len
, to_addr
);
867 if (buffer
[0] != 0xff)
868 error ("Got back bad response for load data.");
877 #endif /* HAVE_SOCKETS */
880 sparclite_download (filename
, from_tty
)
886 download (remote_target_name
, filename
, from_tty
, sparclite_udp_write
,
887 sparclite_udp_start
);
889 abort (); /* sparclite_open should prevent this! */
892 download (remote_target_name
, filename
, from_tty
, sparclite_serial_write
,
893 sparclite_serial_start
);
896 /* Define the target subroutine names */
898 static struct target_ops sparclite_ops
;
901 init_sparclite_ops(void)
903 sparclite_ops
.to_shortname
= "sparclite";
904 sparclite_ops
.to_longname
= "SPARClite remote target";
905 sparclite_ops
.to_doc
= "Use a remote SPARClite target board via a serial line; using a gdb-specific protocol.\n\
906 Specify the serial device it is connected to (e.g. /dev/ttya).";
907 sparclite_ops
.to_open
= sparclite_open
;
908 sparclite_ops
.to_close
= sparclite_close
;
909 sparclite_ops
.to_attach
= 0;
910 sparclite_ops
.to_post_attach
= NULL
;
911 sparclite_ops
.to_require_attach
= NULL
;
912 sparclite_ops
.to_detach
= 0;
913 sparclite_ops
.to_require_detach
= NULL
;
914 sparclite_ops
.to_resume
= 0;
915 sparclite_ops
.to_wait
= 0;
916 sparclite_ops
.to_post_wait
= NULL
;
917 sparclite_ops
.to_fetch_registers
= 0;
918 sparclite_ops
.to_store_registers
= 0;
919 sparclite_ops
.to_prepare_to_store
= 0;
920 sparclite_ops
.to_xfer_memory
= 0;
921 sparclite_ops
.to_files_info
= 0;
922 sparclite_ops
.to_insert_breakpoint
= 0;
923 sparclite_ops
.to_remove_breakpoint
= 0;
924 sparclite_ops
.to_terminal_init
= 0;
925 sparclite_ops
.to_terminal_inferior
= 0;
926 sparclite_ops
.to_terminal_ours_for_output
= 0;
927 sparclite_ops
.to_terminal_ours
= 0;
928 sparclite_ops
.to_terminal_info
= 0;
929 sparclite_ops
.to_kill
= 0;
930 sparclite_ops
.to_load
= sparclite_download
;
931 sparclite_ops
.to_lookup_symbol
= 0;
932 sparclite_ops
.to_create_inferior
= 0;
933 sparclite_ops
.to_post_startup_inferior
= NULL
;
934 sparclite_ops
.to_acknowledge_created_inferior
= NULL
;
935 sparclite_ops
.to_clone_and_follow_inferior
= NULL
;
936 sparclite_ops
.to_post_follow_inferior_by_clone
= NULL
;
937 sparclite_ops
.to_insert_fork_catchpoint
= NULL
;
938 sparclite_ops
.to_remove_fork_catchpoint
= NULL
;
939 sparclite_ops
.to_insert_vfork_catchpoint
= NULL
;
940 sparclite_ops
.to_remove_vfork_catchpoint
= NULL
;
941 sparclite_ops
.to_has_forked
= NULL
;
942 sparclite_ops
.to_has_vforked
= NULL
;
943 sparclite_ops
.to_can_follow_vfork_prior_to_exec
= NULL
;
944 sparclite_ops
.to_post_follow_vfork
= NULL
;
945 sparclite_ops
.to_insert_exec_catchpoint
= NULL
;
946 sparclite_ops
.to_remove_exec_catchpoint
= NULL
;
947 sparclite_ops
.to_has_execd
= NULL
;
948 sparclite_ops
.to_reported_exec_events_per_exec_call
= NULL
;
949 sparclite_ops
.to_has_exited
= NULL
;
950 sparclite_ops
.to_mourn_inferior
= 0;
951 sparclite_ops
.to_can_run
= 0;
952 sparclite_ops
.to_notice_signals
= 0;
953 sparclite_ops
.to_thread_alive
= 0;
954 sparclite_ops
.to_stop
= 0;
955 sparclite_ops
.to_pid_to_exec_file
= NULL
;
956 sparclite_ops
.to_core_file_to_sym_file
= NULL
;
957 sparclite_ops
.to_stratum
= download_stratum
;
958 sparclite_ops
.DONT_USE
= 0;
959 sparclite_ops
.to_has_all_memory
= 0;
960 sparclite_ops
.to_has_memory
= 0;
961 sparclite_ops
.to_has_stack
= 0;
962 sparclite_ops
.to_has_registers
= 0;
963 sparclite_ops
.to_has_execution
= 0;
964 sparclite_ops
.to_sections
= 0;
965 sparclite_ops
.to_sections_end
= 0;
966 sparclite_ops
.to_magic
= OPS_MAGIC
;
967 } /* init_sparclite_ops */
970 _initialize_sparcl_tdep ()
972 init_sparclite_ops() ;
973 add_target (&sparclite_ops
);