gem5-Debug log
Bug 1
$ import m5
error: import-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/408.
Solution
sudo vi /etc/ImageMagick-6/policy.xml
change the rights='none' to rights='read|write' in the lines below:
<!-- <policy domain="module" rights="read|write" pattern="{PS,PDF,XPS}" /> -->
<policy domain="coder" rights="read|write" pattern="PS" /> <policy domain="coder" rights="none" pattern="PS2" /> <policy domain="coder" rights="none" pattern="PS3" /> <policy domain="coder" rights="none" pattern="EPS" /> <policy domain="coder" rights="none" pattern="PDF" /> <policy domain="coder" rights="none" pattern="XPS" />
Bug 2
when running the example scripts two_level.py, error occurs:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "build/X86/python/m5/main.py", line 457, in main
exec(filecode, scope)
File "configs/tutorial/two_level.py", line 53, in <module>
from caches import *
File "configs/tutorial/caches.py", line 44, in <module>
from common import SimpleOpts
ModuleNotFoundError: No module named 'common'
then I opened the two_level.py, modified the following sentence:
m5.util.addToPath('../../') --> m5.util.addToPath('../')
I deleted one of the '../', this sentence means to add the common scripts(under gem5/configs/) to our path.
there is only one '../' switch from gem5/configs/tutorials/ to gem5/configs/
Bug 3
panic: panic condition fd < 0 occurred: Failed to open file /home/zhengyi/gem5_X86/configs/tutorial/../../../tests/test-progs/hello/bin/x86/linux/hell
same as above, one of the '../' in two_level.py should be deleted:
binary = os.path.join(thispath, '../../../', 'tests/test-progs/hello/bin/', isa, 'linux/hello')

浙公网安备 33010602011771号