Hello, This is a link error. You should add m5op_arm.S or libm5.a (gcc -lm5) in your makefile. Look at util/m5/Makefile.arm to build the m5 library.
Regards, -- Fernando A. Endo, Post-doc INRIA Rennes-Bretagne Atlantique France 2016-08-13 23:16 GMT+02:00 anoir nechi <[email protected]>: > > > > > *Hi again Oscar i didn't want to give a quick response until I test what > you told me about using the "m5_dumpreset_stats(0,0);". * > *So today I wanted to test your solution and i did as following:* > ------------------------------------------------------------ > ------------------------------------------------------------ > --------------------------------- > void foo() > { > > *m5_dumpreset_stats(0,0);* > /* Loop which i want to estimate its number of cycles*/ > > * m5_dumpreset_stats(0,0);*} > ------------------------------------------------------------ > ------------------------------------------------------------ > --------------------------------- > *and i have included the m5ops.h like this:* > > *#include* "/home/anoir/gem5-stable/util/m5/m5op.h" > > *and I'm building the project using a Makefile :* > ------------------------------------------------------------ > ------------------------------------------------------------ > --------------------------------- > *CC*=arm-linux-gnueabi-gcc > *CFLAGS*=-g -c -Wall -O3 *-mfpu*=neon > *LDFLAGS*=-static > > *SOURCES*=$ fft.c > *OBJECTS*=$(SOURCES:.c=.o) > > *EXECUTABLE*=fft > > > all: $(TASKMAP) $(SOURCES) $(EXECUTABLE) > > $(EXECUTABLE): $(OBJECTS) > $(CC) $(LDFLAGS) $(OBJECTS) -lm -o $@ > > .c.o: > $(CC) $(CFLAGS) $< -lm -o $@ > > > clean: > rm -fr $(OBJECTS) $(EXECUTABLE) > ------------------------------------------------------------ > ------------------------------------------------------------ > --------------------------------- > > *But when i build the project i get this type of error :* > /home/anoir/workspace/fft_ARM//fft.c:165: undefined reference to > `m5_dumpreset_stats' > > > *Please am I missing something?* > > *Thank you * > > *Kind regards* > > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
