Hi Steve,
In the tutorial presented on ISCA05 they mention on slide 34 some
capabilities of sampling. You can for example fastforward a number of
instructions while warming up the cashes.
When I try to do this I get some problems. If the parameter "do_events"
is set to true it seems to work. Although, when I take a closer look I
see that the number of executed instructions is not correct anymore. In
the example below it should fastforward 1000 instructions. In reality
it are only 17 instructions because the SimpleCPU spends a lot of ticks
waiting for incoming data from the memory hierarchy. I thought this
problem would be solved by setting the "do_events" parameter to false.
This results in a segmentation error.
Is there something wrong in my config file? What exactly is going
wrong? How did you warmup caches while fastforwarding?
root = Root()
root.hier = HierParams(do_data=False, do_events=True)
root.toL2Bus = ToL2Bus()
root.l2 = L2(in_bus=Parent.toL2Bus, out_bus=Parent.toMemBus)
root.dl1 = DL1(out_bus=Parent.toL2Bus)
root.il1 = IL1(out_bus=Parent.toL2Bus)
root.toMemBus = ToMemBus()
root.ram = SDRAM(in_bus=Parent.toMemBus)
root.cpu = [ SimpleCPU(icache = Parent.il1, dcache = Parent.dl1, width
= 1), DetailedCPU(icache = Parent.il1, dcache = Parent.dl1)]
last = Benchmarks.Swim()
root.cpu[0].workload = last
root.cpu[1].workload = last
phase0_cpus = [ root.cpu[0] ]
phase1_cpus = [ root.cpu[1] ]
root.sampler = [ Sampler(periods = [1e3, 2e3], phase0_cpus=phase0_cpus,
phase1_cpus = phase1_cpus ) ]
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
m5sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m5sim-users