Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM VFPv2 missing instructions #7259

Open
GhidorahRex opened this issue Dec 6, 2024 Discussed in #7247 · 0 comments
Open

ARM VFPv2 missing instructions #7259

GhidorahRex opened this issue Dec 6, 2024 Discussed in #7247 · 0 comments
Assignees
Labels
Feature: Processor/ARM Status: Internal This is being tracked internally by the Ghidra team Type: Bug Something isn't working

Comments

@GhidorahRex
Copy link
Collaborator

Discussed in #7247

Originally posted by f-raZ0R December 3, 2024
So, I am decompiling a 3DS game, which uses armv6, as well as the VFP Coprocessor Unit for floating point math instructions. I am... completely missing all of the coprocessor instructions, as well as the 3ds's kernel syscall functions/datatypes. After doing a lot of digging, I still can't... find any plugin or module anything else that I could use to import these instructions into my project?
I would rather not reinvent the wheel here and try to define all these instructions myself, so... where do I even find these?
The VFP floating point math instructions are a much bigger concern to be lacking, and are a much higher priority to have, for me.

It appears that at least vmul and vsqrt instructions are incorrectly wrapped in @if defined(SIMD) as opposed to VFPv2 || VFPv3 || SIMD as they should be. This causes them to disassemble as CDP instructions rather than the appropriate VFP instructions.

@GhidorahRex GhidorahRex added Type: Bug Something isn't working Feature: Processor/ARM Status: Internal This is being tracked internally by the Ghidra team labels Dec 6, 2024
@GhidorahRex GhidorahRex self-assigned this Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Processor/ARM Status: Internal This is being tracked internally by the Ghidra team Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant