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

32 bit arm regs #315

Merged
merged 3 commits into from
Oct 11, 2021
Merged

32 bit arm regs #315

merged 3 commits into from
Oct 11, 2021

Conversation

domenukk
Copy link
Member

@domenukk domenukk commented Oct 2, 2021

Although some way to autogenerate registers would probably be nicer in the long run, this PR adds a the basic arm and aarch64 registers

@domenukk domenukk requested a review from bitwave October 2, 2021 12:46
@bitwave
Copy link
Collaborator

bitwave commented Oct 2, 2021

aarch64 regs are called x0-xN... And you can access the 16 bit part of them individually.

Copy link
Collaborator

@bitwave bitwave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe change the names?

#[derive(IntoPrimitive, TryFromPrimitive, Debug, Clone, Copy, EnumIter)]
#[repr(i32)]
pub enum Aarch64Regs {
R0 = 0,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aarch64 regs are called x0-xN... And you can access the 16 bit part of them individually.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aarch is more complex, dropped it for now

@domenukk domenukk changed the title aarch64 and arm regs 32 bit arm regs Oct 10, 2021
@domenukk domenukk merged commit 44d844e into main Oct 11, 2021
@domenukk domenukk deleted the more_regs branch December 9, 2021 12:57
khang06 pushed a commit to khang06/LibAFL that referenced this pull request Oct 11, 2022
* aarch and arm regs

* fix arm, remove aarch64

* remove aarch64 mod
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.

None yet

3 participants