aboutsummaryrefslogtreecommitdiff
path: root/sim/sh64/cpu.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2006-10-18 18:13:22 +0000
committerDave Brolley <brolley@redhat.com>2006-10-18 18:13:22 +0000
commitc7e628df2ea65e93345a60bab86af1428213f94d (patch)
tree53fbbd6ae5ad2d04d4b4db43b7022bd97ce75308 /sim/sh64/cpu.c
parent4ce7dc156114d9acd1243857ea79e4b24ac6af32 (diff)
downloadgdb-c7e628df2ea65e93345a60bab86af1428213f94d.zip
gdb-c7e628df2ea65e93345a60bab86af1428213f94d.tar.gz
gdb-c7e628df2ea65e93345a60bab86af1428213f94d.tar.bz2
2006-10-18 Dave Brolley <brolley@redhat.com>
* Contribute the following changes: 2006-06-14 Dave Brolley <brolley@redhat.com> * sh64-sim.h (sh64_fipr,sh64_fiprs,sh64_fldp,sh64_fstp,sh64_ftrv) (sh64_fpref): New functions. * sh64.c (sh64_fipr,sh64_fiprs,sh64_fldp,sh64_fstp,sh64_ftrv) (sh64_fpref): New functions. (sh_models): Add sh2e, sh2a, sh2a_nofpu, sh4_nofpu, sh4a, sh4a_nofpu and sh4al. (sh2e_mach): New MACH. (sh2a_fpu_mach): New MACH. (sh2a_nofpu_mach): New MACH. (sh4_nofpu): New MACH. (sh4a_mach): New MACH. (sh4a_nofpu_mach): New MACH. (sh4al_mach): New MACH. * Makefile.in (stamp-*): Depend on $(CGEN_CPU_DIR)/sh-sim.cpu. Pass archfile to CGEN script. * arch.c: Regenerated. * arch.h: Regenerated. * cpu.c: Regenerated. * cpu.h: Regenerated. * cpuall.h: Regenerated. * decode-compact.c: Regenerated. * decode-compact.h: Regenerated. * decode-media.c: Regenerated. * decode-media.h: Regenerated. * defs-compact.h: Regenerated. * defs-media.h: Regenerated. * sem-compact-switch.c: Regenerated. * sem-compact.c: Regenerated. * sem-media-switch.c: Regenerated. * sem-media.c: Regenerated. * sh-desc.c: Regenerated. * sh-desc.h: Regenerated. * sh-opc.h: Regenerated.
Diffstat (limited to 'sim/sh64/cpu.c')
-rw-r--r--sim/sh64/cpu.c70
1 files changed, 51 insertions, 19 deletions
diff --git a/sim/sh64/cpu.c b/sim/sh64/cpu.c
index bf3e2b2..a4eb9fe 100644
--- a/sim/sh64/cpu.c
+++ b/sim/sh64/cpu.c
@@ -2,9 +2,9 @@
THIS FILE IS MACHINE GENERATED WITH CGEN.
-Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+Copyright 1996-2005 Free Software Foundation, Inc.
-This file is part of the GNU Simulators.
+This file is part of the GNU simulators.
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
@@ -18,7 +18,7 @@ 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.
+51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
@@ -238,18 +238,18 @@ sh64_h_fr_set (SIM_CPU *current_cpu, UINT regno, SF newval)
/* Get the value of h-fp. */
-DF
+SF
sh64_h_fp_get (SIM_CPU *current_cpu, UINT regno)
{
- return CPU (h_fp[regno]);
+ return GET_H_FP (regno);
}
/* Set a value for h-fp. */
void
-sh64_h_fp_set (SIM_CPU *current_cpu, UINT regno, DF newval)
+sh64_h_fp_set (SIM_CPU *current_cpu, UINT regno, SF newval)
{
- CPU (h_fp[regno]) = newval;
+ SET_H_FP (regno, newval);
}
/* Get the value of h-fv. */
@@ -300,6 +300,38 @@ sh64_h_dr_set (SIM_CPU *current_cpu, UINT regno, DF newval)
SET_H_DR (regno, newval);
}
+/* Get the value of h-fsd. */
+
+DF
+sh64_h_fsd_get (SIM_CPU *current_cpu, UINT regno)
+{
+ return GET_H_FSD (regno);
+}
+
+/* Set a value for h-fsd. */
+
+void
+sh64_h_fsd_set (SIM_CPU *current_cpu, UINT regno, DF newval)
+{
+ SET_H_FSD (regno, newval);
+}
+
+/* Get the value of h-fmov. */
+
+DF
+sh64_h_fmov_get (SIM_CPU *current_cpu, UINT regno)
+{
+ return GET_H_FMOV (regno);
+}
+
+/* Set a value for h-fmov. */
+
+void
+sh64_h_fmov_set (SIM_CPU *current_cpu, UINT regno, DF newval)
+{
+ SET_H_FMOV (regno, newval);
+}
+
/* Get the value of h-tr. */
DI
@@ -428,36 +460,36 @@ sh64_h_fvc_set (SIM_CPU *current_cpu, UINT regno, SF newval)
SET_H_FVC (regno, newval);
}
-/* Get the value of h-fpccr. */
+/* Get the value of h-gbr. */
SI
-sh64_h_fpccr_get (SIM_CPU *current_cpu)
+sh64_h_gbr_get (SIM_CPU *current_cpu)
{
- return GET_H_FPCCR ();
+ return GET_H_GBR ();
}
-/* Set a value for h-fpccr. */
+/* Set a value for h-gbr. */
void
-sh64_h_fpccr_set (SIM_CPU *current_cpu, SI newval)
+sh64_h_gbr_set (SIM_CPU *current_cpu, SI newval)
{
- SET_H_FPCCR (newval);
+ SET_H_GBR (newval);
}
-/* Get the value of h-gbr. */
+/* Get the value of h-vbr. */
SI
-sh64_h_gbr_get (SIM_CPU *current_cpu)
+sh64_h_vbr_get (SIM_CPU *current_cpu)
{
- return GET_H_GBR ();
+ return GET_H_VBR ();
}
-/* Set a value for h-gbr. */
+/* Set a value for h-vbr. */
void
-sh64_h_gbr_set (SIM_CPU *current_cpu, SI newval)
+sh64_h_vbr_set (SIM_CPU *current_cpu, SI newval)
{
- SET_H_GBR (newval);
+ SET_H_VBR (newval);
}
/* Get the value of h-pr. */