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

Fixed priviledge mode comparison typo #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fpetrot
Copy link

@fpetrot fpetrot commented Dec 4, 2018

Hello Michael,
I believe there is a typo in the assertions checking that the mode parameter is valid in machine.h, since the parameter is unsigned and the assert checks that it is <= 0. Interestingly enough I encountered the problem trying to switch from machine to supervisor mode and not user mode.

Thanks for these examples and the QEMU model, by the way.
Frédéric

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.

1 participant