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

Possible bug in segmentation simulator #43

Open
iftekharanam opened this issue Mar 1, 2022 · 0 comments
Open

Possible bug in segmentation simulator #43

iftekharanam opened this issue Mar 1, 2022 · 0 comments

Comments

@iftekharanam
Copy link

The second example on the README (./segmentation.py -s 100 -a 16 -p 32) throws an error that stems from line 87, where the program checks if the physical memory is 2X larger than the address space.
Could the condition be at least 2X larger: psize < 2 * asize?

abort_if(psize <= 2 * asize, 'physical memory must be 2x GREATER than address space size (if randomly generating base registers)')

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

No branches or pull requests

1 participant