aboutsummaryrefslogtreecommitdiff
path: root/sim/rx
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2010-06-24 20:38:05 +0000
committerKevin Buettner <kevinb@redhat.com>2010-06-24 20:38:05 +0000
commitfd60dc691fb51f108b1e74025e4a2751dced8d32 (patch)
treee30c0543352b88167fcf456e025e669f3f8d1e35 /sim/rx
parent1843028924270956593a8870cce75a4033531910 (diff)
downloadgdb-fd60dc691fb51f108b1e74025e4a2751dced8d32.zip
gdb-fd60dc691fb51f108b1e74025e4a2751dced8d32.tar.gz
gdb-fd60dc691fb51f108b1e74025e4a2751dced8d32.tar.bz2
Add "acc" register. Revise register order and names.
Diffstat (limited to 'sim/rx')
-rw-r--r--sim/rx/ChangeLog5
-rw-r--r--sim/rx/gdb-if.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog
index 73558ce..53a0717 100644
--- a/sim/rx/ChangeLog
+++ b/sim/rx/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-24 Kevin Buettner <kevinb@redhat.com>
+
+ * gdb-if.c (trace.h): Include.
+ (reg_size, sim_fetch_register): Add cases for sim_rx_acc_regnum.
+
2010-06-07 Nick Clifton <nickc@redhat.com>
* reg.c (set_oszc): Use unsigned int for the mask.
diff --git a/sim/rx/gdb-if.c b/sim/rx/gdb-if.c
index 5326bb3..b92c01d 100644
--- a/sim/rx/gdb-if.c
+++ b/sim/rx/gdb-if.c
@@ -36,6 +36,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "load.h"
#include "syscalls.h"
#include "err.h"
+#include "trace.h"
/* Ideally, we'd wrap up all the minisim's data structures in an
object and pass that around. However, neither GDB nor run needs
@@ -403,6 +404,9 @@ reg_size (enum sim_rx_regnum regno)
case sim_rx_fpsw_regnum:
size = sizeof (regs.r_fpsw);
break;
+ case sim_rx_acc_regnum:
+ size = sizeof (regs.r_acc);
+ break;
default:
size = 0;
break;
@@ -503,6 +507,9 @@ sim_fetch_register (SIM_DESC sd, int regno, unsigned char *buf, int length)
case sim_rx_fpsw_regnum:
val = get_reg (fpsw);
break;
+ case sim_rx_acc_regnum:
+ val = ((DI) get_reg (acchi) << 32) | get_reg (acclo);
+ break;
default:
fprintf (stderr, "rx minisim: unrecognized register number: %d\n",
regno);