fix python range need integer parameter

This commit is contained in:
stardust 2020-07-17 11:08:09 +08:00
parent 681c8dad20
commit c572b62988
1 changed files with 2 additions and 2 deletions

View File

@ -87,13 +87,13 @@ mustbemultipleof(asize, pagesize, 'address space must be a multiple of the pages
mustbemultipleof(psize, pagesize, 'physical memory must be a multiple of the pagesize')
# print some useful info, like the darn page table
pages = psize / pagesize;
pages = int(psize / pagesize);
import array
used = array.array('i')
pt = array.array('i')
for i in range(0,pages):
used.insert(i,0)
vpages = asize / pagesize
vpages = int(asize / pagesize)
# now, assign some pages of the VA
vabits = int(math.log(float(asize))/math.log(2.0))