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

emulator: bugfix wrapping add #5719

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

phip1611
Copy link
Contributor

@phip1611 phip1611 commented Aug 31, 2023

This is a bugfix for the emulator that we discovered when executing our test suite in debug mode.

Example instruction:
c7 40 a0 00 10 00 00 movl $0x1000,-0x60(%rax)

rax is 0xfee003e0 and the displacement is negative 0x60. The effective address is then 0xfee00380. This is perfectly valid.

@blitz
Copy link
Contributor

blitz commented Sep 1, 2023

Great find! 🎉

Assume rax is 0xfee003e0 and the displacement is negative 0x60. The effective
address is then 0xfee00380. This is perfectly valid.

Example instruction:
c7 40 a0 00 10 00 00    movl   $0x1000,-0x60(%rax)

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
@rbradford rbradford merged commit 556bda7 into cloud-hypervisor:main Sep 1, 2023
21 checks passed
@phip1611 phip1611 deleted the emulator-bugfix branch September 1, 2023 15:02
@likebreath likebreath added the bug-fix Bug fix to include in release notes label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix Bug fix to include in release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants