Coder Social home page Coder Social logo

desrdev / ghidra-fr60 Goto Github PK

View Code? Open in Web Editor NEW
27.0 5.0 3.0 8.42 MB

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

License: Other

CSS 12.36% HTML 3.64% Java 83.99%
fujitsu ghidra plugin ps2 psx fr60 playstation playstation-2 mb91302a

ghidra-fr60's Introduction

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!

ghidra-fr60's People

Contributors

discostarslayer avatar dracc avatar kostyasha avatar mumbel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ghidra-fr60's Issues

bug in all conditional branches

I am not familiar with FR60's, I just started playing with it.

But I found that @mumbel (hi!) made a mistake in his commit.

All code in CC: table should be rewritten from
CC: "RA" is cc=0x0 { local tmp:1 = 1; export *[const]:1 tmp; }
to
CC: "RA" is cc=0x0 { local tmp:1 = 1; export tmp; }

Current implementation tries to read memory at address 0 or 1, this is completely wrong.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.