the PPU's architected state (the contract other areas use).
(defstruct ppu) source(defstruct (ppu (:conc-name ppu-))
(gpr (make-array 32 :element-type '(unsigned-byte 64) :initial-element 0)
:type (simple-array (unsigned-byte 64) (32)))
(fpr (make-array 32 :element-type '(unsigned-byte 64) :initial-element 0)
:type (simple-array (unsigned-byte 64) (32)))
(vr (make-array 32 :element-type '(unsigned-byte 128) :initial-element 0)
:type (simple-array (unsigned-byte 128) (32)))
(cr 0 :type (unsigned-byte 32)) ; 8 fields of 4 bits, CR0 most significant
(lr 0 :type (unsigned-byte 64))
(ctr 0 :type (unsigned-byte 64))
(xer 0 :type (unsigned-byte 64)) ; SO OV CA and the byte count, PowerPC layout
(fpscr 0 :type (unsigned-byte 32))
(vscr 0 :type (unsigned-byte 32))
(pc 0 :type (unsigned-byte 64)) ; address of the instruction being executed
(npc 0 :type (unsigned-byte 64)) ; address of the next instruction
(reserve-addr 0 :type (unsigned-byte 64)) ; lwarx/ldarx reservation
(reserve-valid 0 :type (unsigned-byte 1))
;; added by src/isa/ppc (not part of the HLE contract above)
(reserve-data 0 :type (unsigned-byte 64)) ; value loaded by lwarx/ldarx
(vrsave 0 :type (unsigned-byte 32))
(exc 0 :type (unsigned-byte 8)) ; pending exception, see util.lisp
(fpx 0 :type (unsigned-byte 8)))Made from xspe at b2fac33349db by tools/gen-xspe.py. xspe is GPL-3.0-or-later.