Skip to content

Ghidra Plugin for Fujitsu FR60 Processors. Focused on DVRP's MB91302A in the Sony PSX.

License

Notifications You must be signed in to change notification settings

desrdev/ghidra-fr60

Repository files navigation

Fujitsu FR60 Ghidra Plugin

This repository contains a plugin for Ghidra that enables decompilation support for FR60 processors from Fujitsu. In particular this project targets the MB91302A used in the PlayStation PSX. It includes a loader for the DVRP firmware used in the PSX to help automatically setup memory ranges.

There is no reason why this plugin cannot be used with other processors from this instruction family, however some functionality may be unimplemented, specifically the Co-Processor logic is completely stubbed out in this plugin.

Building

This project requires Gradle 7+ and OpenJDK 11. It has only been tested on Ghidra 10.1.2.

gradle -PGHIDRA_INSTALL_DIR=/path/to/ghidra buildExtension

Installing

Builds are distributed on the RELEASES page. These can be installed directly into Ghidra by selecting File -> Install Extensions from the main Ghidra UI.

The installation includes support for the FR60 instruction set, as well as a file loader that will detect DVRP fimrware and automatically setup the memory space for the firmware by reading the header.

The decompiler will also automatically identify function calls that align with the Fujitsu C/C++ compiler's output, however given hand rolled assembly was commonly used, not all functions will be correctly identified.

There is also an included script, ResolveUTronSyscalls, which will scan the application and identify the standard Fujitsu μTron syscalls, automatically naming these syscalls. The function definition of each syscall is defined in the Fujitsu documentation HERE.

Would be great to have a way to automatically load these function signatures with this script, contributions welcome!