← Back to Pull requests

hw/mips: add Sony PlayStation 2 machine #48

Open
unknown opened this pull request with 184 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 30, 2026 10:59 UTC
Author

Add a "ps2" machine that boots the meta-playstation2 Linux kernel
(linux-ps2 5.4) and runs its OpenGL library and SDL2 games.

There is no BIOS. QEMU builds a ROM0 with a ROM directory, ROMVER and
empty IOP modules, whose reset code sets Status.EIE and jumps to the
ELF kernel given with -kernel. The IOP runs no code: the SIF answers
the SIF commands and remote procedure calls of the kernel in place of
the IOP modules (heap, module loader, IOP memory access, interrupt
relay), as PCSX2 does with its high-level emulation of the IOP.

The machine has:
- the EE interrupt and DMA controllers, timers and serial port (ttyS0)
- the GS privileged registers, CRT controller and vblank interrupts, and the GIF with PACKED, REGLIST and IMAGE packets; drawing covers points, lines, triangles and sprites, Gouraud shaded, textured with colour lookup tables, fogged, alpha and depth tested and blended, with host to local, local to local and local to host transfers
- VIF1 and a VU1 interpreter, whose XGKICK sends packets to the GS
- the CDVD S-commands for the real time clock and the console model
- the USB OHCI host controller of the IOP, and the DEV9 expansion bay with the SPEED chip and an ATA hard disk

Add the R5900 CPU model, with its Status.EIE master interrupt enable,
64-bit operations in all modes, and the SA register with MFSA, MTSA,
MTSAB and MTSAH, kept in a vmstate subsection.

Signed-off-by: Mig Yang <temashking@foxmail.com>

Diff: 184 lines (+138 / -46) across 2 files Reviewer: zevorn Review duration: 13868m
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 184 lines diff across 2 files
0.36
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.312
Real PR Conversation Timeline
1 comments
"Review active on #48"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 35.7% (MEDIUM) · Higher = larger blast radius
35.7%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 19% · Safe to merge
19%