How dingusdev/dingusppc works
Main Components Overview
The system should be divided into these major components:
a. Core Emulation Layer
• CPU Emulation (PowerPC)
• Memory Management
• Timer Management
• Core Signals
b. Device Emulation Layer
• Common Devices (ADB, ATA, SCSI, PCI, etc.)
• I/O Controllers
• Memory Controllers
• Video Subsystem
• Sound Subsystem
• Storage Devices
• Network Devices
c. Machine Abstraction Layer
• Machine Base Implementation
• Machine Factory
• Specific Machine Models (Catalyst, Gazelle, etc.)
d. Debugging Infrastructure
• Interactive Debugger
• Disassembler
• Test Framework
Component Relationships
[Host System Interface (SDL)] ←→ [Core Emulation Layer]
• ↕
• [Device Emulation Layer]
• ↕
• [Machine Abstraction Layer]
• ↕
• [Debugging Infrastructure]
Specific Implementation Details
a. Core Components (Hexagons):
• PowerPC CPU Emulation (cpu/ppc/)
• Memory Management Unit (cpu/ppc/ppcmmu)
• Timer Manager (core/timermanager)
b. Device Controllers (Rectangles):
• PCI Subsystem (devices/common/pci/)
• SCSI Controllers (devices/common/scsi/)
• ATA Controllers (devices/common/ata/)
• Video Controllers (devices/video/)
• Sound Controllers (devices/sound/)
c. Machine Implementation (Rounded Rectangles):
• Machine Base Class
• Specific Machine Implementations
• Machine Factory
d. Support Systems (Ovals):
• Debugger
• Test Framework
• Host System Interface
Data Flow Indicators
• Memory access paths
• I/O operations
• Interrupt signals
• DMA transfers
• Device communications
Technical Details
Annotations for:
• C++20 implementation
• SDL2 dependency
• External libraries (CubeB, Capstone)
• Build system (CMake)