ruby: set the is_icache param for caches

This patch sets the is_icache param for the L1 caches used in
the MESI and the MOESI CMP directory protocols.
This commit is contained in:
Malek Musleh 2012-10-27 16:04:30 -05:00
parent 931ec6b7cc
commit d2d431f439
2 changed files with 8 additions and 4 deletions

View file

@ -80,10 +80,12 @@ def create_system(options, system, piobus, dma_ports, ruby_system):
# #
l1i_cache = L1Cache(size = options.l1i_size, l1i_cache = L1Cache(size = options.l1i_size,
assoc = options.l1i_assoc, assoc = options.l1i_assoc,
start_index_bit = block_size_bits) start_index_bit = block_size_bits,
is_icache = True)
l1d_cache = L1Cache(size = options.l1d_size, l1d_cache = L1Cache(size = options.l1d_size,
assoc = options.l1d_assoc, assoc = options.l1d_assoc,
start_index_bit = block_size_bits) start_index_bit = block_size_bits,
is_icache = False)
l1_cntrl = L1Cache_Controller(version = i, l1_cntrl = L1Cache_Controller(version = i,
cntrl_id = cntrl_count, cntrl_id = cntrl_count,

View file

@ -80,10 +80,12 @@ def create_system(options, system, piobus, dma_ports, ruby_system):
# #
l1i_cache = L1Cache(size = options.l1i_size, l1i_cache = L1Cache(size = options.l1i_size,
assoc = options.l1i_assoc, assoc = options.l1i_assoc,
start_index_bit = block_size_bits) start_index_bit = block_size_bits,
is_icache = True)
l1d_cache = L1Cache(size = options.l1d_size, l1d_cache = L1Cache(size = options.l1d_size,
assoc = options.l1d_assoc, assoc = options.l1d_assoc,
start_index_bit = block_size_bits) start_index_bit = block_size_bits,
is_icache = False)
l1_cntrl = L1Cache_Controller(version = i, l1_cntrl = L1Cache_Controller(version = i,
cntrl_id = cntrl_count, cntrl_id = cntrl_count,