Files
eden/docs/dynarmic
lizzie 7e129433c0 damn
2026-08-28 08:16:53 +00:00
..
2026-08-28 08:16:53 +00:00
2026-08-28 08:08:11 +00:00

Dynarmic

A dynamic recompiler for ARM.

Note that an adversarial guest program can determine if it's being ran under Dynarmic. Preventing this is not a goal of this project.

Cortex-A57 (32 and 64 bit) is the emulated guest target. See ArchVersion.

The only supported host architectures are x86-64, and AArch64. There are no plans to support any 32-bit architectures.

See an example usage.

Design documentation can be found at ./Design.md.

Alternatives to Dynarmic

Here are some projects with the same goals as Dynarmic:

  • Unicorn - Recompiling multi-architecture CPU emulator, based on QEMU
  • SkyEye - Cached interpreter for ARM

More general alternatives:

  • tARMac - Tarmac's use of armlets was initial inspiration for us to use an intermediate representation
  • QEMU - Recompiling multi-architecture system emulator
  • VisUAL - Visual ARM UAL emulator intended for education
  • A wide variety of other recompilers, interpreters and emulators can be found embedded in other projects, here are some we would recommend looking at:

Disadvantages of Dynarmic

In the pursuit of speed, some behavior not commonly depended upon is elided. Hence this emulator doesn't match spec. Note that this would mean that a guest application can easily determine if it's being ran under instrumentation.

Known examples:

  • Only user-mode is emulated, there is no emulation of any other privilege levels.
  • FPSR state is approximate.
  • Misaligned loads/stores are not appropriately trapped in certain cases.
  • Exclusive monitor behavior may not match any known physical processor.

No formal verification has been done, and no security assessment has been made. Use this code base at your own risk.

Dynarmic is under a GPLv3 license, check the relevant file headers for more information.

Dynarmic uses several open-source libraries, whose licenses are included inside thereof.