Discussion:
[gem5-users] Is there a way to configure the gem5 system with config.ini or config.json
Jimmy Situ
2018-08-17 14:39:13 UTC
Permalink
Hi, All


gem5 dump all system parameter in config.ini and config.json.
I wonder if there is a easy way to duplicate this system with config.ini or config.json file?


Thanks.


------------------
Jimmy Situ
Ciro Santilli
2018-08-17 15:42:10 UTC
Permalink
I've never tried it, but it seems to be what example/read_config.py does:

# This script allows .ini and .json system config file generated from a
# previous gem5 run to be read in and instantiated.
Post by Jimmy Situ
Hi, All
gem5 dump all system parameter in config.ini and config.json.
I wonder if there is a easy way to duplicate this system with config.ini
or config.json file?
Thanks.
------------------
Jimmy Situ
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Jimmy Situ
2018-08-18 09:11:48 UTC
Permalink
Hi, Ciro and All


Thanks. I try that example/read_config.py and it fails. I use the config.ini which dump by gem5, any idea?
fail log
command line: ./gem5/build/X86/gem5.opt gem5/configs/example/read_config.py m5cfg/config.ini --checkpoint-dir ./m5out


Global frequency set at 1000000000000 ticks per second
Error in unproxying param 'vnc' of system.pc.south_bridge.keyboard.keyboard
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/jmst/wrk/myGitHub/gem5-bench/gem5/src/python/m5/main.py", line 435, in main
exec filecode in scope
File "gem5/configs/example/read_config.py", line 542, in <module>
m5.instantiate(args.checkpoint_dir)
File "/home/jmst/wrk/myGitHub/gem5-bench/gem5/src/python/m5/simulate.py", line 92, in instantiate
for obj in root.descendants(): obj.unproxyParams()
File "/home/jmst/wrk/myGitHub/gem5-bench/gem5/src/python/m5/SimObject.py", line 1349, in unproxyParams
value = value.unproxy(self)
File "/home/jmst/wrk/myGitHub/gem5-bench/gem5/src/python/m5/proxy.py", line 121, in unproxy
(self.path(), self._pdesc.ptype_str, base.path())
AttributeError: Can't resolve proxy 'any' of type 'VncInput' from 'system.pc.south_bridge.keyboard.keyboard'









------------------
Jimmy Situ





------------------ Ô­ÊŒÓÊŒþ ------------------
·¢ŒþÈË: "Ciro Santilli"<***@gmail.com>;
·¢ËÍʱŒä: 2018Äê8ÔÂ17ÈÕ(ÐÇÆÚÎå) ÍíÉÏ11:42
ÊÕŒþÈË: "gem5 users mailing l"<gem5-***@gem5.org>;

Ö÷Ìâ: Re: [gem5-users] Is there a way to configure the gem5 system withconfig.ini or config.json


I've never tried it, but it seems to be what example/read_config.py does:

# This script allows .ini and .json system config file generated from a# previous gem5 run to be read in and instantiated.




On Fri, Aug 17, 2018 at 3:39 PM, Jimmy Situ <***@jimmystone.cn> wrote:
Hi, All


gem5 dump all system parameter in config.ini and config.json.
I wonder if there is a easy way to duplicate this system with config.ini or config.json file?


Thanks.


------------------
Jimmy Situ





_______________________________________________
gem5-users mailing list
gem5-***@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Loading...