ARM: Fix memory starting at non-zero address and exceeding max mem for a system.

This commit is contained in:
Ali Saidi
2012-03-09 16:45:47 -05:00
parent 470051345a
commit d2a0db7fe9
2 changed files with 3 additions and 2 deletions

View File

@@ -157,7 +157,7 @@ if bm[0]:
else:
mem_size = SysConfig().mem()
if options.caches or options.l2cache:
test_sys.iocache = IOCache(addr_ranges=[mem_size])
test_sys.iocache = IOCache(addr_ranges=[test_sys.physmem.range])
test_sys.iocache.cpu_side = test_sys.iobus.master
test_sys.iocache.mem_side = test_sys.membus.slave
else: