For example of what I'm trying to do, I have trouble setting the clock from reading http://gem5.org/Simulation_Scripts_Explained
bpayne@bpayne-VirtualBox64:~/gem5$ build/X86/gem5.opt configs/example/se.py -c bench.lex --clock='2.8Ghz' gem5 Simulator System. http://gem5.org gem5 is copyrighted software; use the --copyright option for details. gem5 compiled Oct 16 2012 15:04:38 gem5 started Oct 26 2012 16:24:09 gem5 executing on bpayne-VirtualBox64 command line: build/X86/gem5.opt configs/example/se.py -c bench.lex --clock=2.8Ghz Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/bpayne/gem5/src/python/m5/main.py", line 359, in main exec filecode in scope File "configs/example/se.py", line 150, in <module> CPUClass.clock = options.clock File "/home/bpayne/gem5/src/python/m5/SimObject.py", line 326, in __setattr__ cls._set_param(attr, value, param) File "/home/bpayne/gem5/src/python/m5/SimObject.py", line 263, in _set_param value = param.convert(value) File "/home/bpayne/gem5/src/python/m5/params.py", line 177, in convert return self.ptype(value) File "/home/bpayne/gem5/src/python/m5/params.py", line 1218, in __init__ self.value = convert.anyToLatency(value) File "/home/bpayne/gem5/src/python/m5/util/convert.py", line 173, in anyToLatency raise ValueError, "cannot convert '%s' to clock period" % value ValueError: cannot convert '2.8Ghz' to clock period Error setting param AtomicSimpleCPU.clock to 2.8Ghz -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Payne, Benjamin Sent: Friday, October 26, 2012 4:19 PM To: [email protected] Subject: [gem5-users] validation of x86 Hello, I would like to compare a gem5 simulation to one of my computers. What do I need to know about my system (CPU speed, cache size, etc), and how do I specify that information to gem5? Eventually I want to run a program on my computer, and then run the same program in gem5 (either full system or syscall emulation). I have already run scons build/X86/gem5.opt but I'm not sure what to do next. Is there documentation on the wiki for this validation testing? On my computer, cat /proc/cpuinfo gives the following for one CPU: processor : 7 vendor_id : GenuineIntel cpu family : 6 model : 26 model name : Intel(R) Core(TM) i7 CPU 930 @ 2.80GHz stepping : 5 microcode : 0x11 cpu MHz : 2801.000 cache size : 8192 KB physical id : 0 siblings : 8 core id : 3 cpu cores : 4 apicid : 7 initial apicid : 7 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida dtherm tpr_shadow vnmi flexpriority ept vpid bogomips : 5613.59 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: Thank you in advance, Ben Payne Laboratory for Physical Sciences http://www.lps.umd.edu/ _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
