Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Ben Elliston <bje@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: SH5 simulator contribution
Date: Sat, 02 Feb 2002 02:06:00 -0000	[thread overview]
Message-ID: <15451.47633.743434.331956@scooby.brisbane.redhat.com> (raw)

[-- Attachment #1: message body text --]
[-- Type: text/plain, Size: 418 bytes --]

I would like to contribute the Hitachi SH5 simulator (sh64).  The
patches appear below.  Can this please be accepted into the FSF GDB
distribution?

I have already made the requisite changes to the FSF master copy of
config.sub.  Shall I import the latest version?

Ben


[dejagnu/ChangeLog]

2002-02-02  Ben Elliston  <bje@redhat.com>
	    Alexandre Oliva  <aoliva@redhat.com>

	* baseboards/sh64-sim.exp: New file.


[-- Attachment #2: sh64-sim.exp --]
[-- Type: application/octet-stream, Size: 1507 bytes --]

# This is a list of toolchains that are supported on this board.
set_board_info target_install {sh64-elf}

# Load the generic configuration for this board. This will define a basic set
# of routines needed by the tool to communicate with the board.
load_generic_config "sim"

# basic-sim.exp is a basic description for the standard Cygnus simulator.
load_base_board_description "basic-sim"

# "sh64" is the name of the sim subdir in devo/sim.
setup_sim sh64

# No multilib options needed by default.
process_multilib_options ""

# We only support newlib on this target. We assume that all multilib
# options have been specified before we get here.

set_board_info compiler  "[find_gcc]"
set_board_info cflags    "[libgloss_include_flags] [newlib_include_flags]"
set_board_info ldflags   "[libgloss_link_flags] [newlib_link_flags]"
# No linker script needed.
set_board_info ldscript "";

# Used by a few gcc.c-torture testcases to delimit how large the stack can
# be.
set_board_info gcc,stack_size  0x20000

# Need to pass -mieee in order to for the compiler to be IEEE-fp compliant.
set_board_info ieee_multilib_flags "-mieee";

# The simulator doesn't return exit statuses and we need to indicate this;
# the standard GCC wrapper will work with this target.
set_board_info needs_status_wrapper  1
# Doesn't pass arguments or signals, can't return results, and doesn't
# do inferiorio.
set_board_info noargs 1
set_board_info gdb,nosignals 1
set_board_info gdb,noresults 1
set_board_info gdb,noinferiorio 1

[-- Attachment #3: message body text --]
[-- Type: text/plain, Size: 98 bytes --]


[include/ChangeLog]

2002-02-02  Elena Zannoni  <ezannoni@redhat.com>

	* sim-sh64.h: New file.


[-- Attachment #4: sim-sh64.h --]
[-- Type: application/octet-stream, Size: 1597 bytes --]

/* This file defines the interface between the sh64 simulator and gdb.
   Copyright (C) 2000 Free Software Foundation, Inc.

This file is part of GDB.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */

#if !defined (SIM_SH64_H)
#define SIM_SH64_H

#ifdef __cplusplus
extern "C" { // }
#endif

/* The simulator makes use of the following register information. */

enum
  {
    SIM_SH64_R0_REGNUM = 0,
    SIM_SH64_SP_REGNUM = 15,
    SIM_SH64_PC_REGNUM = 64,
    SIM_SH64_SR_REGNUM = 65,
    SIM_SH64_SSR_REGNUM = 66,
    SIM_SH64_SPC_REGNUM = 67,
    SIM_SH64_TR0_REGNUM = 68,
    SIM_SH64_FPCSR_REGNUM = 76,
    SIM_SH64_FR0_REGNUM = 77
  };

enum
  {
    SIM_SH64_NR_REGS = 141,  /* total number of architectural registers */
    SIM_SH64_NR_R_REGS = 64, /* number of general registers */
    SIM_SH64_NR_TR_REGS = 8, /* number of target registers */
    SIM_SH64_NR_FP_REGS = 64 /* number of floating point registers */
  };

#ifdef __cplusplus
}
#endif

#endif

[-- Attachment #5: message body text --]
[-- Type: text/plain, Size: 742 bytes --]


[sim/ChangeLog]

2002-02-02  Ben Elliston  <bje@redhat.com>

        * configure.in: Add support for sh64.
        * configure: Regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/sim/configure.in,v
retrieving revision 1.8
diff -u -c -r1.8 configure.in
*** configure.in	2002/02/02 04:48:32	1.8
--- configure.in	2002/02/02 10:01:09
***************
*** 86,91 ****
--- 86,95 ----
    mn10200*-*-*)
  	sim_target=mn10200
  	;;
+   sh64-*-*)
+ 	sim_target=sh64
+ 	extra_subdirs="${extra_subdirs} testsuite"
+ 	;;
    sh*-*-*)		sim_target=sh ;;
    powerpc*-*-eabi* | powerpc*-*-solaris* | powerpc*-*-sysv4* | \
    powerpc*-*-elf* | powerpc*-*-linux* | powerpc*-*-netbsd* )

             reply	other threads:[~2002-02-02 10:06 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-02  2:06 Ben Elliston [this message]
2002-02-04 19:48 ` Andrew Cagney
2002-02-04 20:28   ` Ben Elliston
2002-02-04 20:59     ` Andrew Cagney
2002-02-04 22:29       ` Ben Elliston
2002-02-05  8:31         ` Andrew Cagney
2002-02-05 12:21           ` Ben Elliston
2002-02-05 17:36             ` Andrew Cagney
2002-04-12  2:46               ` Joern Rennecke
2002-04-12  9:30                 ` Andrew Cagney
2002-04-12  9:45                 ` Andrew Cagney
2002-04-15  1:48                   ` Joern Rennecke
2002-04-18 18:32                     ` Andrew Cagney
2002-04-29 10:23                       ` Joern Rennecke
2002-04-29 10:47                         ` Andrew Cagney
2002-04-29 11:30                           ` Joern Rennecke
2002-04-12  2:48               ` Joern Rennecke
2002-04-12  2:57               ` Joern Rennecke
2002-04-12  2:57               ` Joern Rennecke
2002-04-12  2:57               ` Joern Rennecke
2002-04-12  2:58               ` Joern Rennecke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15451.47633.743434.331956@scooby.brisbane.redhat.com \
    --to=bje@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox