MEM: Fix fs.py by specifying the range size rather than end
authorAndreas Hansson <andreas.hansson@arm.com>
Wed, 25 Jan 2012 17:44:43 +0000 (12:44 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Wed, 25 Jan 2012 17:44:43 +0000 (12:44 -0500)
This patch fixes the currently broken fs.py by specifying the size of
the bridge range rather than the end address. This effectively
subtracts one when determining the address range for the IO bridge
(from IO bus to membus), and thus avoids the overlapping ranges.

configs/example/fs.py

index 11d7d43f0fefbe8911ce831166c02b0f91d0033b..08484559a93a80d15ecf7884265aabdbd59d082a 100644 (file)
@@ -167,7 +167,7 @@ if options.caches or options.l2cache:
     test_sys.iocache.mem_side = test_sys.membus.port
 else:
     test_sys.iobridge = Bridge(delay='50ns', nack_delay='4ns',
-                               ranges = [AddrRange(0, mem_size)])
+                               ranges = [AddrRange(mem_size)])
     test_sys.iobridge.slave = test_sys.iobus.port
     test_sys.iobridge.master = test_sys.membus.port