How to solve "KeyError: 'cpu'" error when trying to generate configFileName.xml with Gem5toMcpat?

Viewed 139

Hello I am trying to generate configFileName.xml by using the following command in Gem5toMcpat parser which is installed on ubuntu 20

 python Program.py stats.txt  config.json  ARM_A9_2GHz.xml

but it showed me this error


Traceback (most recent call last):
  File "Program.py", line 964, in <module>
    main()
  File "Program.py", line 38, in main
    countCores(sys.argv[2])
  File "Program.py", line 70, in countCores
    noCores = len(configfile["system"]["cpu"])
KeyError: 'cpu'
0 Answers
Related