Skip to content

Fixed priviledge mode comparison typo#5

Open
fpetrot wants to merge 1 commit intolarkmjc:masterfrom
fpetrot:master
Open

Fixed priviledge mode comparison typo#5
fpetrot wants to merge 1 commit intolarkmjc:masterfrom
fpetrot:master

Conversation

@fpetrot
Copy link
Copy Markdown

@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