Hello
I have a simple system simulation configuration script where I set system.cpu:
system.cpu = O3_ARM_v7a.O3_ARM_v7a_3()
I then try to print this to confirm and then furthermore set the
system.mem_mode depending upon the cpu type being used.
However, when I try
print ("System CPU type is: %s" % (system.cpu))
I am getting
System CPU type is: <orphan System>.cpu <== Not able to access system.cpu ??
This would then explain why further on the following check are not working:
if (system.cpu == "AtomicSimpleCPU()"):
system.mem_mode = 'atomic'
else:
system.mem_mode = 'timing'
if (system.cpu == "O3_ARM_v7a.O3_ARM_v7a_3()"):
print ("CPU model is O3_ARM_v7a\n")
system.cpu.icache = O3_ARM_v7a.O3_ARM_v7a_ICache()
system.cpu.dcache = O3_ARM_v7a.O3_ARM_v7a_DCache()
system.cpu.PageTableWalkerCache = O3_ARM_v7a.O3_ARM_v7aWalkCache()
system.l2cache = O3_ARM_v7a.O3_ARM_v7aL2()
Any pointers?
Tks in advance
Best regards
J.Osmany
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users