Home | History | Annotate | Line # | Download | only in m32r
      1       1.1  christos /* Misc. support for CPU family m32r2f.
      2       1.1  christos 
      3       1.1  christos THIS FILE IS MACHINE GENERATED WITH CGEN.
      4       1.1  christos 
      5  1.1.1.11  christos Copyright (C) 1996-2025 Free Software Foundation, Inc.
      6       1.1  christos 
      7       1.1  christos This file is part of the GNU simulators.
      8       1.1  christos 
      9       1.1  christos    This file is free software; you can redistribute it and/or modify
     10       1.1  christos    it under the terms of the GNU General Public License as published by
     11       1.1  christos    the Free Software Foundation; either version 3, or (at your option)
     12       1.1  christos    any later version.
     13       1.1  christos 
     14       1.1  christos    It is distributed in the hope that it will be useful, but WITHOUT
     15       1.1  christos    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
     16       1.1  christos    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
     17       1.1  christos    License for more details.
     18       1.1  christos 
     19       1.1  christos    You should have received a copy of the GNU General Public License along
     20  1.1.1.10  christos    with this program; if not, write to the Free Software Foundation, Inc.,
     21  1.1.1.10  christos    51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
     22       1.1  christos 
     23       1.1  christos */
     24       1.1  christos 
     25       1.1  christos #define WANT_CPU m32r2f
     26       1.1  christos #define WANT_CPU_M32R2F
     27       1.1  christos 
     28       1.1  christos #include "sim-main.h"
     29       1.1  christos #include "cgen-ops.h"
     30       1.1  christos 
     31       1.1  christos /* Get the value of h-pc.  */
     32       1.1  christos 
     33       1.1  christos USI
     34       1.1  christos m32r2f_h_pc_get (SIM_CPU *current_cpu)
     35       1.1  christos {
     36       1.1  christos   return CPU (h_pc);
     37       1.1  christos }
     38       1.1  christos 
     39       1.1  christos /* Set a value for h-pc.  */
     40       1.1  christos 
     41       1.1  christos void
     42       1.1  christos m32r2f_h_pc_set (SIM_CPU *current_cpu, USI newval)
     43       1.1  christos {
     44       1.1  christos   CPU (h_pc) = newval;
     45       1.1  christos }
     46       1.1  christos 
     47       1.1  christos /* Get the value of h-gr.  */
     48       1.1  christos 
     49       1.1  christos SI
     50       1.1  christos m32r2f_h_gr_get (SIM_CPU *current_cpu, UINT regno)
     51       1.1  christos {
     52       1.1  christos   return CPU (h_gr[regno]);
     53       1.1  christos }
     54       1.1  christos 
     55       1.1  christos /* Set a value for h-gr.  */
     56       1.1  christos 
     57       1.1  christos void
     58       1.1  christos m32r2f_h_gr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
     59       1.1  christos {
     60       1.1  christos   CPU (h_gr[regno]) = newval;
     61       1.1  christos }
     62       1.1  christos 
     63       1.1  christos /* Get the value of h-cr.  */
     64       1.1  christos 
     65       1.1  christos USI
     66       1.1  christos m32r2f_h_cr_get (SIM_CPU *current_cpu, UINT regno)
     67       1.1  christos {
     68       1.1  christos   return GET_H_CR (regno);
     69       1.1  christos }
     70       1.1  christos 
     71       1.1  christos /* Set a value for h-cr.  */
     72       1.1  christos 
     73       1.1  christos void
     74       1.1  christos m32r2f_h_cr_set (SIM_CPU *current_cpu, UINT regno, USI newval)
     75       1.1  christos {
     76       1.1  christos   SET_H_CR (regno, newval);
     77       1.1  christos }
     78       1.1  christos 
     79       1.1  christos /* Get the value of h-accum.  */
     80       1.1  christos 
     81       1.1  christos DI
     82       1.1  christos m32r2f_h_accum_get (SIM_CPU *current_cpu)
     83       1.1  christos {
     84       1.1  christos   return GET_H_ACCUM ();
     85       1.1  christos }
     86       1.1  christos 
     87       1.1  christos /* Set a value for h-accum.  */
     88       1.1  christos 
     89       1.1  christos void
     90       1.1  christos m32r2f_h_accum_set (SIM_CPU *current_cpu, DI newval)
     91       1.1  christos {
     92       1.1  christos   SET_H_ACCUM (newval);
     93       1.1  christos }
     94       1.1  christos 
     95       1.1  christos /* Get the value of h-accums.  */
     96       1.1  christos 
     97       1.1  christos DI
     98       1.1  christos m32r2f_h_accums_get (SIM_CPU *current_cpu, UINT regno)
     99       1.1  christos {
    100       1.1  christos   return GET_H_ACCUMS (regno);
    101       1.1  christos }
    102       1.1  christos 
    103       1.1  christos /* Set a value for h-accums.  */
    104       1.1  christos 
    105       1.1  christos void
    106       1.1  christos m32r2f_h_accums_set (SIM_CPU *current_cpu, UINT regno, DI newval)
    107       1.1  christos {
    108       1.1  christos   SET_H_ACCUMS (regno, newval);
    109       1.1  christos }
    110       1.1  christos 
    111       1.1  christos /* Get the value of h-cond.  */
    112       1.1  christos 
    113       1.1  christos BI
    114       1.1  christos m32r2f_h_cond_get (SIM_CPU *current_cpu)
    115       1.1  christos {
    116       1.1  christos   return CPU (h_cond);
    117       1.1  christos }
    118       1.1  christos 
    119       1.1  christos /* Set a value for h-cond.  */
    120       1.1  christos 
    121       1.1  christos void
    122       1.1  christos m32r2f_h_cond_set (SIM_CPU *current_cpu, BI newval)
    123       1.1  christos {
    124       1.1  christos   CPU (h_cond) = newval;
    125       1.1  christos }
    126       1.1  christos 
    127       1.1  christos /* Get the value of h-psw.  */
    128       1.1  christos 
    129       1.1  christos UQI
    130       1.1  christos m32r2f_h_psw_get (SIM_CPU *current_cpu)
    131       1.1  christos {
    132       1.1  christos   return GET_H_PSW ();
    133       1.1  christos }
    134       1.1  christos 
    135       1.1  christos /* Set a value for h-psw.  */
    136       1.1  christos 
    137       1.1  christos void
    138       1.1  christos m32r2f_h_psw_set (SIM_CPU *current_cpu, UQI newval)
    139       1.1  christos {
    140       1.1  christos   SET_H_PSW (newval);
    141       1.1  christos }
    142       1.1  christos 
    143       1.1  christos /* Get the value of h-bpsw.  */
    144       1.1  christos 
    145       1.1  christos UQI
    146       1.1  christos m32r2f_h_bpsw_get (SIM_CPU *current_cpu)
    147       1.1  christos {
    148       1.1  christos   return CPU (h_bpsw);
    149       1.1  christos }
    150       1.1  christos 
    151       1.1  christos /* Set a value for h-bpsw.  */
    152       1.1  christos 
    153       1.1  christos void
    154       1.1  christos m32r2f_h_bpsw_set (SIM_CPU *current_cpu, UQI newval)
    155       1.1  christos {
    156       1.1  christos   CPU (h_bpsw) = newval;
    157       1.1  christos }
    158       1.1  christos 
    159       1.1  christos /* Get the value of h-bbpsw.  */
    160       1.1  christos 
    161       1.1  christos UQI
    162       1.1  christos m32r2f_h_bbpsw_get (SIM_CPU *current_cpu)
    163       1.1  christos {
    164       1.1  christos   return CPU (h_bbpsw);
    165       1.1  christos }
    166       1.1  christos 
    167       1.1  christos /* Set a value for h-bbpsw.  */
    168       1.1  christos 
    169       1.1  christos void
    170       1.1  christos m32r2f_h_bbpsw_set (SIM_CPU *current_cpu, UQI newval)
    171       1.1  christos {
    172       1.1  christos   CPU (h_bbpsw) = newval;
    173       1.1  christos }
    174       1.1  christos 
    175       1.1  christos /* Get the value of h-lock.  */
    176       1.1  christos 
    177       1.1  christos BI
    178       1.1  christos m32r2f_h_lock_get (SIM_CPU *current_cpu)
    179       1.1  christos {
    180       1.1  christos   return CPU (h_lock);
    181       1.1  christos }
    182       1.1  christos 
    183       1.1  christos /* Set a value for h-lock.  */
    184       1.1  christos 
    185       1.1  christos void
    186       1.1  christos m32r2f_h_lock_set (SIM_CPU *current_cpu, BI newval)
    187       1.1  christos {
    188       1.1  christos   CPU (h_lock) = newval;
    189       1.1  christos }
    190