ppc

254 definitions in 12 files, 224 with an encoding diagram. src/isa/ppc

Files

FileDefinitionsOtherWhat
package.lisp00the ISA.PPC package: the PPU (PowerPC 64 + VMX); exports the state contract other areas use.
model.lisp03PowerPC CPU models: the build's model, chosen at build time.
state.lisp01the PPU's architected state (the contract other areas use).
util.lisp030the PowerPC ISA (PPU), its register accessors and MSB-0 helpers.
alu.lisp716PPU fixed-point arithmetic, logical, compare, rotate, shift.
branch.lisp2311PPU branches, CR logical ops, SPR moves, system call, sync.
ldst.lisp2517PPU fixed-point and floating-point loads and stores.
fpu.lisp1760PPU scalar floating point and the FPSCR.
vmx.lisp8833the PPU's VMX (AltiVec) unit.
exec.lisp05the PPU executor, decoder and step function.
asm.lisp301a compile-time PPU assembler built from the definsn records.
model/cell.lisp01the PowerPC model of the Cell Broadband Engine's PPU (the PS3's).

README

src/isa/ppc: the PowerPC (64-bit + VMX), as the Cell's PPU and other models

Package ISA.PPC. One description of the PowerPC for every machine that has one: what Book I-III leave to the implementation belongs to a CPU model chosen at build time (XSPE_PPC_MODEL; the PS3 sets cell). The ISA and its state keep the name ppu.

FileContents
model.lispthe model mechanism: defppcmodel, *ppc-model*, ppc-model-case, ppc-model-feature-case, ppc-model-value (all expanded at transpile time)
model/cell.lispthe Cell PPU: features :estimate-tables, :fctiw-sext, :vmx-left-right; 128-byte cache line and reservation granule; 79.8 MHz timebase
state.lispthe ppu struct (HLE contract; slots added at the end only)
util.lispdefisa ppu, defppu, MSB-0 helpers (msb-bit, msb-field, ppc-mask, rotl32x), GPR/FPR/VR/CR/XER accessors, CR0 and XER CA/OV/SO updates, branch-to, raise
alu.lispfixed-point arithmetic, logical, compare, trap, rotate, shift
branch.lispb/bc/bclr/bcctr, CR logical, mcrf, mfocrf/mtocrf, mfspr/mtspr/mftb (time base defhost), sc, sync and cache hints
ldst.lispinteger loads/stores (all widths, update, indexed, byte-reversed, multiple, string), reservations, dcbz, FP loads/stores
fpu.lispscalar FP instructions and the FPSCR, on core's IEEE primitives (docs/float.md)
vmx.lispVMX integer and float lanes, VSCR, vector loads/stores
exec.lispppu-execute, ppu-decode, ppu-step, ppu-run
asm.lispcompile-time assembler from the :asm specs, extended mnemonics

Tests: tests/isa/ppc/*.lisp (assembled programs run through ppu-step, ctil's output against tests/golden/; ECL under XSPE_ECL_ORACLE).

Conventions

TODO


Made from xspe at b2fac33349db by tools/gen-xspe.py. xspe is GPL-3.0-or-later.