Configuration: Move iocache outside of processors loop so it works for MP systems
authorAli Saidi <saidi@eecs.umich.edu>
Mon, 8 Oct 2007 19:19:58 +0000 (15:19 -0400)
committerAli Saidi <saidi@eecs.umich.edu>
Mon, 8 Oct 2007 19:19:58 +0000 (15:19 -0400)
--HG--
extra : convert_revision : 0ba563555a94eb22a6d4e402388e75e70d3556c2

configs/example/fs.py

index ea525bf412a9691f9865b0c0764397a5c8ba6d31..74ee875a32aed8f4d4f25b8b63a1b578bfa02318 100644 (file)
@@ -119,16 +119,19 @@ if options.l2cache:
     test_sys.l2.mem_side = test_sys.membus.port
 
 test_sys.cpu = [TestCPUClass(cpu_id=i) for i in xrange(np)]
+
+if options.caches:
+    test_sys.bridge.filter_ranges_a=[AddrRange(0, Addr.max)]
+    test_sys.bridge.filter_ranges_b=[AddrRange(0, size='8GB')]
+    test_sys.iocache = IOCache(mem_side_filter_ranges=[AddrRange(0, Addr.max)],
+                       cpu_side_filter_ranges=[AddrRange(0x8000000000, Addr.max)])
+    test_sys.iocache.cpu_side = test_sys.iobus.port
+    test_sys.iocache.mem_side = test_sys.membus.port
+
 for i in xrange(np):
     if options.caches:
         test_sys.cpu[i].addPrivateSplitL1Caches(L1Cache(size = '32kB'),
                                                 L1Cache(size = '64kB'))
-        test_sys.bridge.filter_ranges_a=[AddrRange(0, Addr.max)]
-        test_sys.bridge.filter_ranges_b=[AddrRange(0, size='8GB')]
-        test_sys.iocache = IOCache(mem_side_filter_ranges=[AddrRange(0, Addr.max)],
-                           cpu_side_filter_ranges=[AddrRange(0x8000000000, Addr.max)])
-        test_sys.iocache.cpu_side = test_sys.iobus.port
-        test_sys.iocache.mem_side = test_sys.membus.port
     if options.l2cache:
         test_sys.cpu[i].connectMemPorts(test_sys.tol2bus)
     else: