1 1.1 christos /* Misc. support for CPU family lm32bf. 2 1.1 christos 3 1.1 christos THIS FILE IS MACHINE GENERATED WITH CGEN. 4 1.1 christos 5 1.1.1.10 christos Copyright (C) 1996-2024 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 lm32bf 26 1.1 christos #define WANT_CPU_LM32BF 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 lm32bf_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 lm32bf_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 lm32bf_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 lm32bf_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-csr. */ 64 1.1 christos 65 1.1 christos SI 66 1.1 christos lm32bf_h_csr_get (SIM_CPU *current_cpu, UINT regno) 67 1.1 christos { 68 1.1 christos return CPU (h_csr[regno]); 69 1.1 christos } 70 1.1 christos 71 1.1 christos /* Set a value for h-csr. */ 72 1.1 christos 73 1.1 christos void 74 1.1 christos lm32bf_h_csr_set (SIM_CPU *current_cpu, UINT regno, SI newval) 75 1.1 christos { 76 1.1 christos CPU (h_csr[regno]) = newval; 77 1.1 christos } 78