(comment "program counter")
(attrs PC (MACH ORBIS-MACHS))
(type pc UWI)
+ (get () (raw-reg h-pc))
+ (set (newval) (sequence ()
+ (set (reg h-sys-ppc) (raw-reg h-pc))
+ (set (raw-reg h-pc) newval)
+ ))
)
(define-pmacro REG-INDICES
(SYS DCFGR #x007 "Debug configuration register")
(SYS PCCFGR #x008 "Performance counters configuration register")
(SYS NPC #x010 "Next program counter")
- (SYS SR #x011 "Supervision Regsiter")
+ (SYS SR #x011 "Supervision Register")
(SYS PPC #x012 "Previous program counter")
(SYS FPCSR #x014 "Floating point control status register")
(.unsplice
(define-normal-enum
spr-reg-indices
- "special purpose register indicies"
+ "special purpose register indices"
()
SPR-INDEX-
(.map (.pmacro (args)