Hi,
I want to execute a very simple application and at some point dump
the stats. For that reason I make an API call to the m5_dump_stats(0,
0) function provided by Gem5. The application under test looks like :
#include <stdio.h>
#include <stdlib.h>
#include <m5op.h>
int main( int argc, char *argv[]){
printf("Dumping Stats....");
m5_dump_stats(0, 0);
printf("Done\n");
fflush(stdout);
exit(0);
}
I compile the source file using aarch64-linux-gnu-gcc v4.8.2. I am
executing the gem5 stable version. I execute the following command to
simulate the system.
./build/ARM/gem5.opt -r -d test --debug-flags=PseudoInst
configs/example/fs.py
--kernel=$M5_PATH/binaries/vmlinux.aarch64.20140821
--machine=VExpress_EMM64
--dtb-file=$M5_PATH/binaries/vexpress.aarch64.20140821.dtb
--disk-image=linaro-minimal-aarch64.img --caches
--script=$M5_PATH/scripts/script.sh
In the simout file I can see that the dump_stats function is called
twice by my application although it is called only once.
Konstantinos Parasyris
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users