*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

Reply via email to