Mihai Parparita c6c48eff4b ppc: Model configurable CPU frequencies
Virtual time previously advanced by a fixed 16 ns per interpreted
instruction, making every CPU behave like the legacy 62.5 MHz model
regardless of the selected machine. G3 guests also received ad hoc HID1
values from individual machine implementations, while Gazelle supported
several frequencies that could not share that logic.

Require each machine to provide its hardware-appropriate bus, core, and
timebase clocks through one `PPC_CPU_Config` configuration object. We can then
derive things from it (e.g. supported MPC603ev and MPC750 HID1 PLL encodings).
We can also populate the `include_601` global based on `version` instead of a
separate flag.

To model time with more flexibility, we now use 60.4 fixed-point nanoseconds for
instruction timing. This lets us have a broad set of frequencies and still
support running the CPU for ~35 years of virtual time before it overflows.

This results in two emulation accuracy improvements:
- Tiger successfully gets to the Finder. The virtual time we were exposing to
  the guest was advancing too quickly, preventing loginwindow from connecting
  before WindowServer's internal five-second no-client timer expired.
  The server then exited normally,  loginwindow aborted when it could not
  establish its CoreGraphics connection, and we remained stuck at the last
  textual output from a verbose boot ("Waiting for IFC").
- Animations are now more accurate (e.g. Mac OS X dock icon bouncing is no
  longer too fast on a G3)
2026-08-13 20:27:34 -07:00
2026-03-20 07:00:38 -07:00
2026-08-09 08:08:44 -07:00
2026-04-04 08:53:19 -07:00
2020-12-03 00:53:28 +01:00
2026-07-24 00:32:06 +02:00
2026-04-20 13:40:34 -07:00
2026-07-13 10:37:28 -07:00
2024-04-15 07:01:51 -07:00
…
…
2026-01-30 08:12:04 -07:00
2026-01-30 08:12:04 -07:00
2026-01-30 08:12:04 -07:00
2026-08-09 08:08:44 -07:00

DingusPPC

Written by The DingusPPC Development Team

(who are Divingkatae, maximumspatium, joevt, mihaip, kkaisershot, Cacodemon345, Wack0, et. al. Check CREDITS.md for more info)

Be warned the program is highly unfinished and could use a lot of testing. Any feedback is welcome.

Philosophy of Use

While many other PowerPC emus exist (PearPC, Sheepshaver), none of them currently attempt emulation of PowerPC Macs accurately (except for QEMU).

This program aims to not only improve upon what Sheepshaver, PearPC, and other PowerPC Mac emulators have done, but also to provide a better debugging environment. This currently is designed to work best with PowerPC NuBus and Old World ROMs, including those of the Power Mac 6100, 7200, and G3 Beige.

Implemented Features

Several machines have been implemented to varying degrees, like many Old World PowerPC Macs, early New World PowerPC Macs, and the Pippin.

This emulator has a debugging environment, complete with a disassembler.

How to Use

This program currently uses the command prompt to work.

There are a few command line arguments one can enter when starting the program.

-r, --run

Run the emulator. Currently only goes to an interpreter.

-d, --debugger

Enter the interactive debugger.

-b, --bootrom TEXT:FILE

Specifies the Boot ROM path. It otherwise looks for bootrom.bin.

-m, --machine TEXT

Specify machine ID. Otherwise, the emulator will attempt to determine machine ID from the boot rom otherwise.

As of now, the most complete machines are the Power Mac 6100, the Power Mac 7500, and the Power Mac G3 Beige.

To go into to the debugger regardless of how you started the emulator, press Control and C on the terminal window.

How to Compile

You need to install development tools first.

At minimum, a C++20 compliant compiler and CMake are required.

Clone the repository using the appropriate command:

git clone https://github.com/dingusdev/dingusppc

If this is from a mirror, replace the argument with the source you want to use instead.

You will also have to recursive clone or run

git submodule update --init --recursive

This is because the CubeB, Capstone, and SDL2 modules are not included by default.

For SDL2, Linux users may also have to run:

sudo apt install libsdl2-dev

macOS users can use Homebrew or MacPorts to install SDL2.

CLI11 and loguru are already included in the thirdparty folder and compiled along with the rest of DingusPPC.

For Raspbian, you may also need the following command:

sudo apt install doxygen graphviz

To build the project in a Unix-like environment, create a build folder, change the directory to the build folder, and use cmake to create the Makefile files in that build folder. Use make to do the building. You don't need to execute cmake again unless you add/remove/change options or source files.

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make

You may specify another build type using the variable CMAKE_BUILD_TYPE. Each build type should have its own build folder.

mkdir build-debug
cd build-debug
cmake -DCMAKE_BUILD_TYPE=Debug ..
make

Testing

DingusPPC includes a test suite for verifying the correctness of its PowerPC CPU emulation. To build the tests, use the following terminal commands:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DDPPC_BUILD_PPC_TESTS=True ..
make testppc

Intended Minimum Requirements

  • Windows 7 or newer (64-bit), Linux 4.4 or newer, Mac OS X 10.9 or newer (64-bit)
  • Intel Core 2 Duo or better
  • 2 GB of RAM
  • 2 GB of Hard Disk Space
  • Graphics Card with a minimum resolution of 800*600
Languages
C++ 94.2%
C 3.9%
Python 1%
CMake 0.8%