Dear all,
I would like to use the m5ops functions such as "m5_reset_stats" in my own
c++ program.
I have done it for x86, however, I would like to do it for RISC-V.

For X86 I performed the following:

scons -C util/m5 build/x86/out/m5
gcc -static -I include -o main.out main.c util/m5/build/x86/out/libm5.a

My C program:

#include <stdio.h>
#include <gem5/m5ops.h>

int main() {
    printf("Hello, World!");
    m5_reset_stats(0,0);
    return 0;
}

However, when I have tried for RISC-V, it was not possible. Do you
know if there is support for RISC-V ?

Thanks !!

Cristóbal
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to