Ruby.py (11041:d3bae341e151) | Ruby.py (11046:0cd13910b063) |
---|---|
1# Copyright (c) 2012 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 217 unchanged lines hidden (view full) --- 226 if piobus != None: 227 for cpu_seq in cpu_sequencers: 228 cpu_seq.pio_master_port = piobus.slave 229 cpu_seq.mem_master_port = piobus.slave 230 231 if buildEnv['TARGET_ISA'] == "x86": 232 cpu_seq.pio_slave_port = piobus.master 233 | 1# Copyright (c) 2012 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 217 unchanged lines hidden (view full) --- 226 if piobus != None: 227 for cpu_seq in cpu_sequencers: 228 cpu_seq.pio_master_port = piobus.slave 229 cpu_seq.mem_master_port = piobus.slave 230 231 if buildEnv['TARGET_ISA'] == "x86": 232 cpu_seq.pio_slave_port = piobus.master 233 |
234 ruby.number_of_virtual_networks = ruby.network.number_of_virtual_networks |
|
234 ruby._cpu_ports = cpu_sequencers 235 ruby.num_of_sequencers = len(cpu_sequencers) 236 237 # Create a backing copy of physical memory in case required 238 if options.access_backing_store: 239 ruby.access_backing_store = True 240 ruby.phys_mem = SimpleMemory(range=system.mem_ranges[0], 241 in_addr_map=False) 242 243def send_evicts(options): 244 # currently, 2 scenarios warrant forwarding evictions to the CPU: 245 # 1. The O3 model must keep the LSQ coherent with the caches 246 # 2. The x86 mwait instruction is built on top of coherence invalidations 247 if options.cpu_type == "detailed" or buildEnv['TARGET_ISA'] == 'x86': 248 return True 249 return False | 235 ruby._cpu_ports = cpu_sequencers 236 ruby.num_of_sequencers = len(cpu_sequencers) 237 238 # Create a backing copy of physical memory in case required 239 if options.access_backing_store: 240 ruby.access_backing_store = True 241 ruby.phys_mem = SimpleMemory(range=system.mem_ranges[0], 242 in_addr_map=False) 243 244def send_evicts(options): 245 # currently, 2 scenarios warrant forwarding evictions to the CPU: 246 # 1. The O3 model must keep the LSQ coherent with the caches 247 # 2. The x86 mwait instruction is built on top of coherence invalidations 248 if options.cpu_type == "detailed" or buildEnv['TARGET_ISA'] == 'x86': 249 return True 250 return False |