1440a403fSchristos; OpenRISC 1000 32-bit CPU hardware description. -*- Scheme -*- 2*b88e3e88Schristos; Copyright 2000-2019 Free Software Foundation, Inc. 3440a403fSchristos; Contributed for OR32 by Johan Rydberg, jrydberg@opencores.org 4440a403fSchristos; Modified by Julius Baxter, juliusbaxter@gmail.com 5*b88e3e88Schristos; Modified by Andrey Bacherov, avbacherov@opencores.org 6440a403fSchristos; 7440a403fSchristos; This program is free software; you can redistribute it and/or modify 8440a403fSchristos; it under the terms of the GNU General Public License as published by 9440a403fSchristos; the Free Software Foundation; either version 3 of the License, or 10440a403fSchristos; (at your option) any later version. 11440a403fSchristos; 12440a403fSchristos; This program is distributed in the hope that it will be useful, 13440a403fSchristos; but WITHOUT ANY WARRANTY; without even the implied warranty of 14440a403fSchristos; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15440a403fSchristos; GNU General Public License for more details. 16440a403fSchristos; 17440a403fSchristos; You should have received a copy of the GNU General Public License 18440a403fSchristos; along with this program; if not, see <http://www.gnu.org/licenses/> 19440a403fSchristos 20440a403fSchristos; Hardware pieces. 21440a403fSchristos; These entries list the elements of the raw hardware. 22440a403fSchristos; They're also used to provide tables and other elements of the assembly 23440a403fSchristos; language. 24440a403fSchristos 25440a403fSchristos(define-hardware 26440a403fSchristos (name h-pc) 27440a403fSchristos (comment "program counter") 28440a403fSchristos (attrs PC (MACH ORBIS-MACHS)) 29440a403fSchristos (type pc UWI) 3006324dcfSchristos (get () (raw-reg h-pc)) 3106324dcfSchristos (set (newval) (sequence () 3206324dcfSchristos (set (reg h-sys-ppc) (raw-reg h-pc)) 3306324dcfSchristos (set (raw-reg h-pc) newval) 3406324dcfSchristos )) 35440a403fSchristos ) 36440a403fSchristos 37440a403fSchristos(define-pmacro REG-INDICES 38440a403fSchristos ((r0 0) 39440a403fSchristos (r1 1) 40440a403fSchristos (r2 2) 41440a403fSchristos (r3 3) 42440a403fSchristos (r4 4) 43440a403fSchristos (r5 5) 44440a403fSchristos (r6 6) 45440a403fSchristos (r7 7) 46440a403fSchristos (r8 8) 47440a403fSchristos (r9 9) 48440a403fSchristos (r10 10) 49440a403fSchristos (r11 11) 50440a403fSchristos (r12 12) 51440a403fSchristos (r13 13) 52440a403fSchristos (r14 14) 53440a403fSchristos (r15 15) 54440a403fSchristos (r16 16) 55440a403fSchristos (r17 17) 56440a403fSchristos (r18 18) 57440a403fSchristos (r19 19) 58440a403fSchristos (r20 20) 59440a403fSchristos (r21 21) 60440a403fSchristos (r22 22) 61440a403fSchristos (r23 23) 62440a403fSchristos (r24 24) 63440a403fSchristos (r25 25) 64440a403fSchristos (r26 26) 65440a403fSchristos (r27 27) 66440a403fSchristos (r28 28) 67440a403fSchristos (r29 29) 68440a403fSchristos (r30 30) 69440a403fSchristos (r31 31) 70440a403fSchristos (lr 9) 71440a403fSchristos (sp 1) 72440a403fSchristos (fp 2)) 73440a403fSchristos ) 74440a403fSchristos 75*b88e3e88Schristos; 76*b88e3e88Schristos; Hardware: [S]pecial [P]urpose [R]egisters 77*b88e3e88Schristos; 78440a403fSchristos(define-hardware 79440a403fSchristos (name h-spr) (comment "special purpose registers") 80440a403fSchristos (attrs VIRTUAL (MACH ORBIS-MACHS)) 81440a403fSchristos (type register UWI (#x20000)) 82440a403fSchristos (get (index) (c-call UWI "@cpu@_h_spr_get_raw" index)) 83440a403fSchristos (set (index newval) (c-call VOID "@cpu@_h_spr_set_raw" index newval)) 84440a403fSchristos) 85440a403fSchristos 86440a403fSchristos(define-pmacro spr-shift 11) 87440a403fSchristos(define-pmacro (spr-address spr-group spr-index) 88440a403fSchristos (or (sll UWI (enum UWI (.sym "SPR-GROUP-" spr-group)) spr-shift) 89440a403fSchristos (enum UWI (.sym "SPR-INDEX-" spr-group "-" spr-index)))) 90440a403fSchristos 91*b88e3e88Schristos; 92*b88e3e88Schristos; Hardware: [G]enepral [P]urpose [R]egisters 93*b88e3e88Schristos; 94440a403fSchristos(define-hardware 95440a403fSchristos (name h-gpr) (comment "general registers") 96440a403fSchristos (attrs (MACH ORBIS-MACHS)) 97440a403fSchristos (type register UWI (32)) 98440a403fSchristos (indices keyword "" REG-INDICES) 99440a403fSchristos (get (index) (reg UWI h-spr (add index (spr-address SYS GPR0)))) 100440a403fSchristos (set (index newval) (set UWI (reg UWI h-spr (add index (spr-address SYS GPR0))) newval)) 101440a403fSchristos ) 102440a403fSchristos 103*b88e3e88Schristos; 104*b88e3e88Schristos; Hardware: virtual registerts for FPU (single precision) 105*b88e3e88Schristos; mapped to GPRs 106*b88e3e88Schristos; 107*b88e3e88Schristos(define-hardware 108*b88e3e88Schristos (name h-fsr) 109*b88e3e88Schristos (comment "floating point registers (single, virtual)") 110*b88e3e88Schristos (attrs VIRTUAL (MACH ORFPX32-MACHS)) 111*b88e3e88Schristos (type register SF (32)) 112*b88e3e88Schristos (indices keyword "" REG-INDICES) 113*b88e3e88Schristos (get (index) (subword SF (trunc SI (reg h-gpr index)) 0)) 114*b88e3e88Schristos (set (index newval) (set UWI (reg h-gpr index) (zext UWI (subword SI newval 0)))) 115*b88e3e88Schristos ) 116*b88e3e88Schristos 117*b88e3e88Schristos; 118*b88e3e88Schristos; Hardware: virtual registerts for FPU (double precision) 119*b88e3e88Schristos; mapped to GPRs 120*b88e3e88Schristos; 121*b88e3e88Schristos(define-hardware 122*b88e3e88Schristos (name h-fdr) 123*b88e3e88Schristos (comment "or64 floating point registers (double, virtual)") 124*b88e3e88Schristos (attrs VIRTUAL (MACH ORFPX64-MACHS)) 125*b88e3e88Schristos (type register DF (32)) 126*b88e3e88Schristos (indices keyword "" REG-INDICES) 127*b88e3e88Schristos (get (index) (subword DF (trunc DI (reg h-gpr index)) 0)) 128*b88e3e88Schristos (set (index newval) (set UDI (reg h-gpr index) (zext UDI (subword DI newval 0)))) 129*b88e3e88Schristos ) 130*b88e3e88Schristos 131*b88e3e88Schristos; 132*b88e3e88Schristos; Register pairs are offset by 2 for registers r16 and above. This is to 133*b88e3e88Schristos; be able to allow registers to be call saved in GCC across function calls. 134*b88e3e88Schristos; 135*b88e3e88Schristos(define-pmacro (reg-pair-reg-lo index) 136*b88e3e88Schristos (and index (const #x1f)) 137*b88e3e88Schristos) 138*b88e3e88Schristos 139*b88e3e88Schristos(define-pmacro (reg-pair-reg-hi index) 140*b88e3e88Schristos (add (and index (const #x1f)) 141*b88e3e88Schristos (if (eq (sra index (const 5)) 142*b88e3e88Schristos (const 1)) 143*b88e3e88Schristos (const 2) 144*b88e3e88Schristos (const 1) 145*b88e3e88Schristos ) 146*b88e3e88Schristos ) 147*b88e3e88Schristos) 148*b88e3e88Schristos 149*b88e3e88Schristos; 150*b88e3e88Schristos; Hardware: vrtual registers for double precision floating point 151*b88e3e88Schristos; operands on 32-bit machines 152*b88e3e88Schristos; mapped to GPRs 153*b88e3e88Schristos; 154*b88e3e88Schristos(define-hardware 155*b88e3e88Schristos (name h-fd32r) 156*b88e3e88Schristos (comment "or32 floating point registers (double, virtual)") 157*b88e3e88Schristos (attrs VIRTUAL (MACH ORFPX64A32-MACHS)) 158*b88e3e88Schristos (type register DF (32)) 159*b88e3e88Schristos (get (index) (join DF SI 160*b88e3e88Schristos (reg h-gpr (reg-pair-reg-lo index)) 161*b88e3e88Schristos (reg h-gpr (reg-pair-reg-hi index)))) 162*b88e3e88Schristos (set (index newval) 163*b88e3e88Schristos (sequence () 164*b88e3e88Schristos (set (reg h-gpr (reg-pair-reg-lo index)) (subword SI newval 0)) 165*b88e3e88Schristos (set (reg h-gpr (reg-pair-reg-hi index)) 166*b88e3e88Schristos (subword SI newval 1)))) 167*b88e3e88Schristos) 168*b88e3e88Schristos 169*b88e3e88Schristos; 170*b88e3e88Schristos; Hardware: vrtual 64-bit integer registers for conversions 171*b88e3e88Schristos; float64 <-> int64 on 32-bit machines 172*b88e3e88Schristos; mapped to GPRs 173*b88e3e88Schristos; 174*b88e3e88Schristos(define-hardware 175*b88e3e88Schristos (name h-i64r) 176*b88e3e88Schristos (comment "or32 double word registers (int64, virtual)") 177*b88e3e88Schristos (attrs VIRTUAL (MACH ORFPX64A32-MACHS)) 178*b88e3e88Schristos (type register DI (32)) 179*b88e3e88Schristos (get (index) (join DI SI 180*b88e3e88Schristos (reg h-gpr (reg-pair-reg-lo index)) 181*b88e3e88Schristos (reg h-gpr (reg-pair-reg-hi index)))) 182*b88e3e88Schristos (set (index newval) 183*b88e3e88Schristos (sequence () 184*b88e3e88Schristos (set (reg h-gpr (reg-pair-reg-lo index)) (subword SI newval 0)) 185*b88e3e88Schristos (set (reg h-gpr (reg-pair-reg-hi index)) 186*b88e3e88Schristos (subword SI newval 1)))) 187*b88e3e88Schristos) 188*b88e3e88Schristos 189*b88e3e88Schristos 190440a403fSchristos(define-normal-enum 191440a403fSchristos except-number 192440a403fSchristos "Exception numbers" 193440a403fSchristos () 194440a403fSchristos EXCEPT- 195440a403fSchristos (("NONE" #x00) 196440a403fSchristos ("RESET" #x01) 197440a403fSchristos ("BUSERR" #x02) 198440a403fSchristos ("DPF" #x03) 199440a403fSchristos ("IPF" #x04) 200440a403fSchristos ("TICK" #x05) 201440a403fSchristos ("ALIGN" #x06) 202440a403fSchristos ("ILLEGAL" #x07) 203440a403fSchristos ("INT" #x08) 204440a403fSchristos ("DTLBMISS" #x09) 205440a403fSchristos ("ITLBMISS" #x0a) 206440a403fSchristos ("RANGE" #x0b) 207440a403fSchristos ("SYSCALL" #x0c) 208440a403fSchristos ("FPE" #x0d) 209440a403fSchristos ("TRAP" #x0e) 210440a403fSchristos ) 211440a403fSchristos ) 212440a403fSchristos 213440a403fSchristos(define-pmacro (raise-exception exnum) 214440a403fSchristos (c-call VOID "@cpu@_exception" pc exnum)) 215440a403fSchristos 216440a403fSchristos(define-normal-enum 217440a403fSchristos spr-groups 218440a403fSchristos "special purpose register groups" 219440a403fSchristos () 220440a403fSchristos SPR-GROUP- 221440a403fSchristos (("SYS" #x0) 222440a403fSchristos ("DMMU" #x1) 223440a403fSchristos ("IMMU" #x2) 224440a403fSchristos ("DCACHE" #x3) 225440a403fSchristos ("ICACHE" #x4) 226440a403fSchristos ("MAC" #x5) 227440a403fSchristos ("DEBUG" #x6) 228440a403fSchristos ("PERF" #x7) 229440a403fSchristos ("POWER" #x8) 230440a403fSchristos ("PIC" #x9) 231440a403fSchristos ("TICK" #xa) 232440a403fSchristos ("FPU" #xb) 233440a403fSchristos ) 234440a403fSchristos ) 235440a403fSchristos 236440a403fSchristos(define-pmacro (spr-reg-info) 237440a403fSchristos (.splice 238440a403fSchristos (SYS VR #x000 "version register") 239440a403fSchristos (SYS UPR #x001 "unit present register") 240440a403fSchristos (SYS CPUCFGR #x002 "cpu configuration register") 241440a403fSchristos (SYS DMMUCFGR #x003 "Data MMU configuration register") 242440a403fSchristos (SYS IMMUCFGR #x004 "Insn MMU configuration register") 243440a403fSchristos (SYS DCCFGR #x005 "Data cache configuration register") 244440a403fSchristos (SYS ICCFGR #x006 "Insn cache configuration register") 245440a403fSchristos (SYS DCFGR #x007 "Debug configuration register") 246440a403fSchristos (SYS PCCFGR #x008 "Performance counters configuration register") 247440a403fSchristos (SYS NPC #x010 "Next program counter") 24806324dcfSchristos (SYS SR #x011 "Supervision Register") 249440a403fSchristos (SYS PPC #x012 "Previous program counter") 250440a403fSchristos (SYS FPCSR #x014 "Floating point control status register") 251440a403fSchristos (.unsplice 252440a403fSchristos (.map (.pmacro (n) (.splice SYS (.sym "EPCR" n) (.add n #x20) (.str "Exception PC register " n))) 253440a403fSchristos (.iota #x10))) 254440a403fSchristos (.unsplice 255440a403fSchristos (.map (.pmacro (n) (.splice SYS (.sym "EEAR" n) (.add n #x30) (.str "Exception effective address register " n))) 256440a403fSchristos (.iota #x10))) 257440a403fSchristos (.unsplice 258440a403fSchristos (.map (.pmacro (n) (.splice SYS (.sym "ESR" n) (.add n #x40) (.str "Exception supervision register " n))) 259440a403fSchristos (.iota #x10))) 260440a403fSchristos (.unsplice 261440a403fSchristos (.map (.pmacro (n) (.splice SYS (.sym "GPR" n) (.add n #x400) (.str "General purpose register " n))) 262440a403fSchristos (.iota #x200))) 263440a403fSchristos 264440a403fSchristos (MAC MACLO #x001 "Multiply and accumulate result (low)") 265440a403fSchristos (MAC MACHI #x002 "Multiply and accumulate result (high)") 266440a403fSchristos (TICK TTMR #x000 "Tick timer mode register") 267440a403fSchristos ) 268440a403fSchristos ) 269440a403fSchristos 270440a403fSchristos(define-normal-enum 271440a403fSchristos spr-reg-indices 272*b88e3e88Schristos "special purpose register indices" 273440a403fSchristos () 274440a403fSchristos SPR-INDEX- 275440a403fSchristos (.map (.pmacro (args) 276440a403fSchristos (.apply (.pmacro (group index n comment) 277440a403fSchristos ((.sym group "-" index) n)) 278440a403fSchristos args) 279440a403fSchristos ) 280440a403fSchristos (spr-reg-info) 281440a403fSchristos ) 282440a403fSchristos ) 283440a403fSchristos 284440a403fSchristos(define-pmacro (define-h-spr-reg spr-group spr-index n spr-comment) 285440a403fSchristos (define-hardware 286440a403fSchristos (name (.sym "h-" (.downcase spr-group) "-" (.downcase spr-index))) 287440a403fSchristos (comment spr-comment) 288440a403fSchristos (attrs VIRTUAL (MACH ORBIS-MACHS)) 289440a403fSchristos (type register UWI) 290440a403fSchristos (get () (reg UWI h-spr (spr-address spr-group spr-index))) 291440a403fSchristos (set (newval) (set (reg UWI h-spr (spr-address spr-group spr-index)) newval)) 292440a403fSchristos ) 293440a403fSchristos ) 294440a403fSchristos(.splice begin (.unsplice (.map (.pmacro (args) (.apply define-h-spr-reg args)) (spr-reg-info)))) 295440a403fSchristos 296440a403fSchristos(define-pmacro (spr-field-info) 297440a403fSchristos ((SYS VR REV 5 0 "revision field") 298440a403fSchristos (SYS VR CFG 23 16 "configuration template field") 299440a403fSchristos (SYS VR VER 31 24 "version field") 300440a403fSchristos (SYS UPR UP 0 0 "UPR present bit") 301440a403fSchristos (SYS UPR DCP 1 1 "data cache present bit") 302440a403fSchristos (SYS UPR ICP 2 2 "insn cache present bit") 303440a403fSchristos (SYS UPR DMP 3 3 "data MMU present bit") 304440a403fSchristos (SYS UPR MP 4 4 "MAC unit present bit") 305440a403fSchristos (SYS UPR IMP 5 5 "insn MMU present bit") 306440a403fSchristos (SYS UPR DUP 6 6 "debug unit present bit") 307440a403fSchristos (SYS UPR PCUP 7 7 "performance counters unit present bit") 308440a403fSchristos (SYS UPR PICP 8 8 "programmable interrupt controller present bit") 309440a403fSchristos (SYS UPR PMP 9 9 "power management present bit") 310440a403fSchristos (SYS UPR TTP 10 10 "tick timer present bit") 311440a403fSchristos (SYS UPR CUP 31 24 "custom units present field") 312440a403fSchristos (SYS CPUCFGR NSGR 3 0 "number of shadow GPR files field") 313440a403fSchristos (SYS CPUCFGR CGF 4 4 "custom GPR file bit") 314440a403fSchristos (SYS CPUCFGR OB32S 5 5 "ORBIS32 supported bit") 315440a403fSchristos (SYS CPUCFGR OB64S 6 6 "ORBIS64 supported bit") 316440a403fSchristos (SYS CPUCFGR OF32S 7 7 "ORFPX32 supported bit") 317440a403fSchristos (SYS CPUCFGR OF64S 8 8 "ORFPX64 supported bit") 318440a403fSchristos (SYS CPUCFGR OV64S 9 9 "ORVDX64 supported bit") 319440a403fSchristos (SYS CPUCFGR ND 10 10 "no transfer delay bit") 320440a403fSchristos (SYS SR SM 0 0 "supervisor mode bit") 321440a403fSchristos (SYS SR TEE 1 1 "tick timer exception enabled bit") 322440a403fSchristos (SYS SR IEE 2 2 "interrupt exception enabled bit") 323440a403fSchristos (SYS SR DCE 3 3 "data cache enabled bit") 324440a403fSchristos (SYS SR ICE 4 4 "insn cache enabled bit") 325440a403fSchristos (SYS SR DME 5 5 "data MMU enabled bit") 326440a403fSchristos (SYS SR IME 6 6 "insn MMU enabled bit") 327440a403fSchristos (SYS SR LEE 7 7 "little endian enabled bit") 328440a403fSchristos (SYS SR CE 8 8 "CID enable bit") 329440a403fSchristos (SYS SR F 9 9 "flag bit") 330440a403fSchristos (SYS SR CY 10 10 "carry bit") 331440a403fSchristos (SYS SR OV 11 11 "overflow bit") 332440a403fSchristos (SYS SR OVE 12 12 "overflow exception enabled bit") 333440a403fSchristos (SYS SR DSX 13 13 "delay slot exception bit") 334440a403fSchristos (SYS SR EPH 14 14 "exception prefix high bit") 335440a403fSchristos (SYS SR FO 15 15 "fixed one bit") 336440a403fSchristos (SYS SR SUMRA 16 16 "SPRs user mode read access bit") 337440a403fSchristos (SYS SR CID 31 28 "context ID field") 338440a403fSchristos (SYS FPCSR FPEE 0 0 "floating point exceptions enabled bit") 339440a403fSchristos (SYS FPCSR RM 2 1 "floating point rounding mode field") 340440a403fSchristos (SYS FPCSR OVF 3 3 "floating point overflow flag bit") 341440a403fSchristos (SYS FPCSR UNF 4 4 "floating point underflow bit") 342440a403fSchristos (SYS FPCSR SNF 5 5 "floating point SNAN flag bit") 343440a403fSchristos (SYS FPCSR QNF 6 6 "floating point QNAN flag bit") 344440a403fSchristos (SYS FPCSR ZF 7 7 "floating point zero flag bit") 345440a403fSchristos (SYS FPCSR IXF 8 8 "floating point inexact flag bit") 346440a403fSchristos (SYS FPCSR IVF 9 9 "floating point invalid flag bit") 347440a403fSchristos (SYS FPCSR INF 10 10 "floating point infinity flag bit") 348440a403fSchristos (SYS FPCSR DZF 11 11 "floating point divide by zero flag bit") 349440a403fSchristos ) 350440a403fSchristos ) 351440a403fSchristos 352440a403fSchristos(define-normal-enum 353440a403fSchristos spr-field-msbs 354440a403fSchristos "SPR field msb positions" 355440a403fSchristos () 356440a403fSchristos SPR-FIELD-MSB- 357440a403fSchristos (.map (.pmacro (args) 358440a403fSchristos (.apply (.pmacro (group index field msb lsb comment) 359440a403fSchristos ((.sym group "-" index "-" field) msb) 360440a403fSchristos ) 361440a403fSchristos args 362440a403fSchristos ) 363440a403fSchristos ) 364440a403fSchristos (spr-field-info) 365440a403fSchristos ) 366440a403fSchristos ) 367440a403fSchristos 368440a403fSchristos(define-normal-enum 369440a403fSchristos spr-field-lsbs 370440a403fSchristos "SPR field lsb positions" 371440a403fSchristos () 372440a403fSchristos SPR-FIELD-SIZE- 373440a403fSchristos (.map (.pmacro (args) 374440a403fSchristos (.apply (.pmacro (group index field msb lsb comment) 375440a403fSchristos ((.sym group "-" index "-" field) lsb) 376440a403fSchristos ) 377440a403fSchristos args 378440a403fSchristos ) 379440a403fSchristos ) 380440a403fSchristos (spr-field-info) 381440a403fSchristos ) 382440a403fSchristos ) 383440a403fSchristos 384440a403fSchristos(define-normal-enum 385440a403fSchristos spr-field-masks 386440a403fSchristos "SPR field masks" 387440a403fSchristos () 388440a403fSchristos SPR-FIELD-MASK- 389440a403fSchristos (.map (.pmacro (args) 390440a403fSchristos (.apply (.pmacro (group index field msb lsb comment) 391440a403fSchristos (.splice (.str group "-" index "-" field) (.sll (.inv (.sll (.inv 0) (.add (.sub msb lsb) 1))) lsb)) 392440a403fSchristos ) 393440a403fSchristos args 394440a403fSchristos ) 395440a403fSchristos ) 396440a403fSchristos (spr-field-info) 397440a403fSchristos ) 398440a403fSchristos ) 399440a403fSchristos 400440a403fSchristos(define-pmacro (define-h-spr-field spr-group spr-index spr-field spr-field-msb spr-field-lsb spr-field-comment) 401440a403fSchristos (.let ((spr-field-name (.sym "h-" (.downcase spr-group) "-" (.downcase spr-index) "-" (.downcase spr-field))) 402440a403fSchristos ) 403440a403fSchristos (begin 404440a403fSchristos (define-hardware 405440a403fSchristos (name spr-field-name) 406440a403fSchristos (comment spr-field-comment) 407440a403fSchristos (attrs VIRTUAL (MACH ORBIS-MACHS)) 408440a403fSchristos (type register UWI) 409440a403fSchristos (get () (c-call UWI "@cpu@_h_spr_field_get_raw" (spr-address spr-group spr-index) spr-field-msb spr-field-lsb)) 410440a403fSchristos (set (value) (c-call VOID "@cpu@_h_spr_field_set_raw" (spr-address spr-group spr-index) spr-field-msb spr-field-lsb value)) 411440a403fSchristos ) 412440a403fSchristos ) 413440a403fSchristos ) 414440a403fSchristos ) 415440a403fSchristos(.splice begin (.unsplice (.map (.pmacro (args) (.apply define-h-spr-field args)) (spr-field-info)))) 416440a403fSchristos 417440a403fSchristos(define-attr 418440a403fSchristos (type boolean) 419440a403fSchristos (for insn) 420440a403fSchristos (name DELAYED-CTI) 421440a403fSchristos (comment "delayed control transfer instruction") 422440a403fSchristos (values #f #t) 423440a403fSchristos (default #f) 424440a403fSchristos ) 425440a403fSchristos 426440a403fSchristos(define-attr 427440a403fSchristos (for insn) 428440a403fSchristos (type boolean) 429440a403fSchristos (name NOT-IN-DELAY-SLOT) 430440a403fSchristos (comment "instruction cannot be in delay slot") 431440a403fSchristos (values #f #t) 432440a403fSchristos (default #f) 433440a403fSchristos ) 434440a403fSchristos 435440a403fSchristos(define-attr 436440a403fSchristos (for insn) 437440a403fSchristos (type boolean) 438440a403fSchristos (name FORCED-CTI) 439440a403fSchristos (comment "instruction may forcefully transfer control (e.g., rfe)") 440440a403fSchristos ) 441