-
Notifications
You must be signed in to change notification settings - Fork 2
index 15
Shumin Lee edited this page Aug 28, 2017
·
3 revisions
1 gem5.opt로 디버깅을 할 경우 빌드과정동안 최적화 과정으로 인해 line number가 안맞게 나올 수 있다. 따라서 gem5.debug를 빌드를 해준다.
$ scons build/ARM/gem5.debug -j20
2 gem5.debug
를 gdb
를 통해 수행
$ gdb gem5.debug
3 gem5.opt
뒤에 들어가는 arguments를 넣어준다.
(gdb) set args /home/shumin/LG_Project/gem5/configs/example/se.py -c /home/shumin/LG_Project/gem5/tests/test-progs/hello/bin/arm/linux/hello --cpu-type=arm_detailed --sys-clock=1GHz --cpu-clock=1GHz --num-cpus=1 --caches --l2cache --mem-type=DDR3_1600_8x8 --mem-size=8192MB
4 breakpoint를 찍어서 r (run)을 해준다.
(gdb) b src/cpu/o3/rename_impl.hh:1033