aboutsummaryrefslogtreecommitdiff
path: root/sim/frv/frv-sim.h
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2003-10-31 18:23:47 +0000
committerDave Brolley <brolley@redhat.com>2003-10-31 18:23:47 +0000
commit9a29f3cae56f0b97155c400dcf6bc865882fbc79 (patch)
tree03376148e0ccc30bbb1429e998fb84bc2d731517 /sim/frv/frv-sim.h
parent6066c3de513998f9c90c14385bf5e1b9ab626cc0 (diff)
downloadgdb-9a29f3cae56f0b97155c400dcf6bc865882fbc79.zip
gdb-9a29f3cae56f0b97155c400dcf6bc865882fbc79.tar.gz
gdb-9a29f3cae56f0b97155c400dcf6bc865882fbc79.tar.bz2
2003-10-31 Dave Brolley <brolley@redhat.com>
* frv-sim.h (REGNUM_LR): Removed. (REGNUM_SPR_MIN,REGNUM_SPR_MAX): New macros. * frv.c (frvbf_fetch_register): Fetch SPR registers based on REGNUM_SPR_MIN and REGNUM_SPR_MAX. Check whether SPRs are implemented. Return 0 for an unimplemented register. Return the length of the data for an implemented register. (frvbf_store_register): Ditto.
Diffstat (limited to 'sim/frv/frv-sim.h')
-rw-r--r--sim/frv/frv-sim.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/frv/frv-sim.h b/sim/frv/frv-sim.h
index a28df49..53d131f 100644
--- a/sim/frv/frv-sim.h
+++ b/sim/frv/frv-sim.h
@@ -33,7 +33,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define GR_REGNUM_MAX 63
#define FR_REGNUM_MAX 127
#define PC_REGNUM 128
-#define LR_REGNUM 145
+#define SPR_REGNUM_MIN 129
+#define SPR_REGNUM_MAX (SPR_REGNUM_MIN + 4096 - 1)
/* Initialization of the frv cpu. */
void frv_initialize (SIM_CPU *, SIM_DESC);