mumbel / ghidra_mb91f

Fujitsu MB91F Ghidra processor module
Apache License 2.0
8 stars 1 forks source link

ghidra_fr60 #2

Open mumbel opened 1 year ago

mumbel commented 1 year ago

https://github.com/desrdev/ghidra-fr60

@desrdev starting writing this and then thought about searching github more and came across your stuff after I got this far. Def have not debugged anything (havent started pspec/cspec/ldefs at all) and still had a few questions on some of the instructions. but I'm no longer going to develop on this repo, but if you wanted to take a look if we differed hugely in implementation, obviously yours works so chances are im just wrong).

mumbel commented 1 year ago

ping @DiscoStarslayer if you were interested .... just noticed that other acct is an org

DiscoStarslayer commented 1 year ago

Hey @mumbel, thanks for the ping. I haven't taken a deep dive, but at least from 10,000ft I do like your implementation of STM/LDM more than my brute force approach assuming it works as expected. I may try to port that over.

Some caveats that you may wish to consider if using my plugin:

Otherwise, I'm happy to accept PR's or issues on the project, I have plans on eventually up-streaming the more chip agnostic portions

mumbel commented 1 year ago

@DiscoStarslayer yeah, that ldm/stm hopefully works, I tried to copy the approach used in ppc/arm. Same 10,000 ft view .... conditional branching differs, and delay slot syntax (I did ^":d" and you have _D, I think that errored out without the ^ and the : in a string)

I dont know much about this architecture and didn't have big plans for RE, just wanted to try implementing it. /r/carhacking posted about it, I'm familiar with SLEIGH and it looked like a small enough ISA so I gave it a shot (this was about 6hrs of work maybe so far)

mumbel commented 1 year ago

have a few PRs up. first covers what we talked about here and 2nd is more of a code audit.