]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/sh64/cpu.c
Update copyright year range in all GDB files
[thirdparty/binutils-gdb.git] / sim / sh64 / cpu.c
index bf3e2b2f7c3dc19ea0422866cc25fb4ccf6899be..259516bd0d518c4f2d26a82a6a2c05090afad984 100644 (file)
@@ -2,23 +2,22 @@
 
 THIS FILE IS MACHINE GENERATED WITH CGEN.
 
-Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+Copyright 1996-2021 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
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
+   This file 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 3, 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.
+   It 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.
+   You should have received a copy of the GNU General Public License along
+   with this program; if not, see <http://www.gnu.org/licenses/>.
 
 */
 
@@ -238,18 +237,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 +299,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 +459,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.  */