remzi-arpacidusseau/ostep-homework

Possible bug in segmentation simulator

iftekharanam opened this issue · 0 comments

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)')