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

fixes barrier instructions with delay slots #1165

Merged
merged 2 commits into from
Jul 1, 2020

Conversation

ivg
Copy link
Member

@ivg ivg commented Jul 1, 2020

During disassembling we are processing instructions in the linear
not execution order and to detect if there is a fallthrough we were looking
at the barrier property of the last disassembled instruction, which,
in case of MIPS and other architectures with delay slots, wasn't even
a jump.

Instead, we should look into the disassembler state in which we have
recording for each barrier and which is even faster.

During disassembling we are processing instructions in linear order
not execution and to detect if there is a fallthrough we were looking
at the `barrier` property of the last disassembled instruction, which,
in case of MIPS and other architectures with delay slots, wasn't even
a jump.

Instead, we should look into the disassembler state in which we have
recording for each barrier and which is even faster.
@ivg ivg requested a review from gitoleg July 1, 2020 18:26
@ivg ivg self-assigned this Jul 1, 2020
@ivg ivg merged commit cf5af07 into BinaryAnalysisPlatform:master Jul 1, 2020
@ivg ivg deleted the fix-barrier-on-mips branch December 1, 2021 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants