Hi!
I modified CacheConfig.py such that I will have private l2 caches, the same
number as the number of cores
****************CacheConfig.py modifications************************
def config_cachel2private(options, system):
    if options.l2cache:
    l2caches = [L2Cache(size = options.l2_size, assoc = options.l2_assoc,
                            block_size=options.cacheline_size) for i in
xrange(options.num_cpus)]
    system.l2cache = l2caches

    for i in xrange(options.num_cpus):
        if options.caches:
            icache = L1Cache(size = options.l1i_size, assoc =
options.l1i_assoc,
                             block_size=options.cacheline_size)
            dcache = L1Cache(size = options.l1d_size, assoc =
options.l1d_assoc,
                             block_size=options.cacheline_size)
        system.cpu[i].addPrivateSplitL1Caches(icache, dcache)
    if options.l2cache:
        system.l2cache[i].l1tol2bus = Bus()
        system.l2cache[i].cpu_side = system.l2cache[i].l1tol2bus.port
        system.l2cache[i].mem_side = system.membus.port
        system.cpu[i].connectAllPorts(system.l2cache[i].l1tol2bus,
system.membus)
    else:
        system.cpu[i].connectAllPorts(system.membus)
    return system
****************************************************************************

When trying to observe the cache and the physical memory, I got concerned on
the following output in the physical memory trace.
*198765000: system.physmem: mem inhibited on 0x15e40: not responding
*What does it mean if physical memory is inhibited on an address and not
responding?

198764500: system.cpu3.icache: ReadReq (ifetch) 10100 hit
198764500: system.cpu2.icache: ReadReq (ifetch) 10100 hit
198764500: system.cpu1.icache: ReadReq (ifetch) 13770 hit
198764500: system.cpu1.dcache: ReadReq 77fe8 hit
198765000: system.cpu1.icache: ReadReq (ifetch) 13774 hit
198765000: system.cpu2.icache: ReadReq (ifetch) 10104 hit
198765000: system.cpu2.dcache: StoreCondReq 15e60 hit
198765000: system.cpu2.dcache: Sending an atomic SCUpgradeReq for 15e40
198765000: system.l2cache2: SCUpgradeReq 15e40 hit
198765000: system.l2cache2: Sending an atomic SCUpgradeReq for 15e40
198765000: system.cpu1.dcache: snooped a SCUpgradeReq request for addr
15e40, responding, new state is 0
198765000: system.cpu3.dcache: snooped a SCUpgradeReq request for addr
15e40, new state is 0
198765000: system.l2cache3: snooped a SCUpgradeReq request for addr 15e40,
new state is 0
*198765000: system.physmem: mem inhibited on 0x15e40: not responding*
198765000: system.l2cache2: Receive response: UpgradeResp for addr 15e40 in
state 5
198765000: system.l2cache2: Block addr 15e40 moving from state 5 to 15
198765000: system.cpu2.dcache: Receive response: UpgradeResp for addr 15e40
in state 5
198765000: system.cpu2.dcache: Block addr 15e40 moving from state 5 to 7
198765000: system.cpu3.icache: ReadReq (ifetch) 10104 hit
198765000: system.cpu3.dcache: StoreCondReq 15e60 miss
198765000: system.cpu0.icache: ReadReq (ifetch) 33f040 hit

Thanks!
Anne Lorraine Luna
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to