From: Andrew Cagney <ac131313@cygnus.com>
To: Joern Rennecke <joern.rennecke@superh.com>
Cc: gdb-patches@sources.redhat.com, Elena Zannoni <ezannoni@redhat.com>
Subject: Re: Enum constants for sh1-sh4, sh{3}-dsp register numbers in the simulator
Date: Wed, 15 May 2002 13:34:00 -0000 [thread overview]
Message-ID: <3CE2C66F.90209@cygnus.com> (raw)
In-Reply-To: <3CE24FEF.279A0207@superh.com>
> Index: include/gdb/sim-sh.h
> ===================================================================
> RCS file: /cvs/src/src/include/gdb/sim-sh.h,v
> retrieving revision 1.1
> diff -p -r1.1 sim-sh.h
> *** include/gdb/sim-sh.h 10 May 2002 22:53:56 -0000 1.1
> --- include/gdb/sim-sh.h 15 May 2002 11:55:03 -0000
> *************** extern "C" { // }
> *** 28,33 ****
> --- 28,62 ----
>
> enum
> {
> + SIM_SH_R0_REGNUM = 0, SIM_SH_R1_REGNUM, SIM_SH_R2_REGNUM, SIM_SH_R3_REGNUM,
> + SIM_SH_R4_REGNUM, SIM_SH_R5_REGNUM, SIM_SH_R6_REGNUM, SIM_SH_R7_REGNUM,
> + SIM_SH_R8_REGNUM, SIM_SH_R9_REGNUM, SIM_SH_R10_REGNUM, SIM_SH_R11_REGNUM,
> + SIM_SH_R12_REGNUM, SIM_SH_R13_REGNUM, SIM_SH_R14_REGNUM, SIM_SH_R15_REGNUM,
> + SIM_SH_PC_REGNUM, SIM_SH_PR_REGNUM,
> + SIM_SH_GBR_REGNUM, SIM_SH_VBR_REGNUM,
> + SIM_SH_MACH_REGNUM, SIM_SH_MACL_REGNUM, SIM_SH_SR_REGNUM,
> + SIM_SH_FPUL_REGNUM, SIM_SH_FPSCR_REGNUM,
> + SIM_SH_FR0_REGNUM = 25, /* sh3e / sh4 */
> + /* sh[3]-dsp */
> + SIM_SH_DSR_REGNUM = 24,
> + SIM_SH_A0G_REGNUM, SIM_SH_A0_REGNUM,
> + SIM_SH_A1G_REGNUM, SIM_SH_A1_REGNUM,
> + SIM_SH_M0_REGNUM, SIM_SH_M1_REGNUM,
> + SIM_SH_X0_REGNUM, SIM_SH_X1_REGNUM,
> + SIM_SH_Y0_REGNUM, SIM_SH_Y1_REGNUM,
> + SIM_SH_MOD_REGNUM = 40,
One thought.
This is a true enum and not a bunch of constants. Perhaphs it would be
better to simply list all the enum members.
I intend doing the same to sim-d10v.h.
However, not my call. Elena and BenE are the ones with an interest here.
enjoy,
Andrew
next prev parent reply other threads:[~2002-05-15 20:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-15 5:08 Joern Rennecke
2002-05-15 13:25 ` Andrew Cagney
2002-05-16 13:29 ` Ben Elliston
2002-05-15 13:34 ` Andrew Cagney [this message]
2002-05-16 3:09 ` Enum constants for sh1-sh4, sh{3}-dsp register numbers in thesimulator 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=3CE2C66F.90209@cygnus.com \
--to=ac131313@cygnus.com \
--cc=ezannoni@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=joern.rennecke@superh.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