Home | History | Annotate | Line # | Download | only in ppc
      1 /* DO NOT EDIT: GENERATED BY spreg-gen.py.
      2 
      3    Copyright (C) 1994-1995 Andrew Cagney <cagney (at) highland.com.au>
      4    Copyright (C) 1996-2024 Free Software Foundation, Inc.
      5 
      6    This file is part of the GNU simulators.
      7 
      8    This program is free software; you can redistribute it and/or modify
      9    it under the terms of the GNU General Public License as published by
     10    the Free Software Foundation; either version 3 of the License, or
     11    (at your option) any later version.
     12 
     13    This program is distributed in the hope that it will be useful,
     14    but WITHOUT ANY WARRANTY; without even the implied warranty of
     15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     16    GNU General Public License for more details.
     17 
     18    You should have received a copy of the GNU General Public License
     19    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
     20 
     21 #ifndef _SPREG_H_
     22 #define _SPREG_H_
     23 
     24 typedef unsigned_word spreg;
     25 
     26 typedef enum {
     27   spr_mq = 0,
     28   spr_xer = 1,
     29   spr_rtcu = 4,
     30   spr_rtcl = 5,
     31   spr_lr = 8,
     32   spr_ctr = 9,
     33   spr_dsisr = 18,
     34   spr_dar = 19,
     35   spr_dec = 22,
     36   spr_sdr1 = 25,
     37   spr_srr0 = 26,
     38   spr_srr1 = 27,
     39   spr_vrsave = 256,
     40   spr_tbrl = 268,
     41   spr_tbru = 269,
     42   spr_sprg0 = 272,
     43   spr_sprg1 = 273,
     44   spr_sprg2 = 274,
     45   spr_sprg3 = 275,
     46   spr_ear = 282,
     47   spr_tbl = 284,
     48   spr_tbu = 285,
     49   spr_pvr = 287,
     50   spr_spefscr = 512,
     51   spr_ibat0u = 528,
     52   spr_ibat0l = 529,
     53   spr_ibat1u = 530,
     54   spr_ibat1l = 531,
     55   spr_ibat2u = 532,
     56   spr_ibat2l = 533,
     57   spr_ibat3u = 534,
     58   spr_ibat3l = 535,
     59   spr_dbat0u = 536,
     60   spr_dbat0l = 537,
     61   spr_dbat1u = 538,
     62   spr_dbat1l = 539,
     63   spr_dbat2u = 540,
     64   spr_dbat2l = 541,
     65   spr_dbat3u = 542,
     66   spr_dbat3l = 543,
     67   spr_ummcr0 = 936,
     68   spr_upmc1 = 937,
     69   spr_upmc2 = 938,
     70   spr_usia = 939,
     71   spr_ummcr1 = 940,
     72   spr_upmc3 = 941,
     73   spr_upmc4 = 942,
     74   spr_mmcr0 = 952,
     75   spr_pmc1 = 953,
     76   spr_pmc2 = 954,
     77   spr_sia = 955,
     78   spr_mmcr1 = 956,
     79   spr_pmc3 = 957,
     80   spr_pmc4 = 958,
     81   spr_sda = 959,
     82   spr_dmiss = 976,
     83   spr_dcmp = 977,
     84   spr_hash1 = 978,
     85   spr_hash2 = 979,
     86   spr_imiss = 980,
     87   spr_icmp = 981,
     88   spr_rpa = 982,
     89   spr_hid0 = 1008,
     90   spr_hid1 = 1009,
     91   spr_iabr = 1010,
     92   spr_dabr = 1013,
     93   spr_l2cr = 1017,
     94   spr_ictc = 1019,
     95   spr_thrm1 = 1020,
     96   spr_thrm2 = 1021,
     97   spr_thrm3 = 1022,
     98   spr_pir = 1023,
     99   nr_of_sprs = 1024
    100 } sprs;
    101 
    102 INLINE_SPREG(int) spr_is_valid(sprs spr);
    103 INLINE_SPREG(int) spr_is_readonly(sprs spr);
    104 INLINE_SPREG(const char *) spr_name(sprs spr);
    105 INLINE_SPREG(int) spr_index(sprs spr);
    106 INLINE_SPREG(int) spr_length(sprs spr);
    107 
    108 #endif /* _SPREG_H_ */
    109