Hi All,

I am trying to run a basic program of memcpy for which I am seeing the
following error.

"build/ARM/sim/faults.cc:104: panic: panic condition !handled &&
!tc->getSystemPtr()->trapToGdb(SIGSEGV, tc->contextId()) occurred: Page
table fault when accessing virtual address 0x7ffffffe00"

Below is the program that was cross compiled (I used -static flag when
compiling):








*void memCpy(void *d, void *s, size_t n){    char *csrc = (char *)s;
char *cdest = (char *)d;    for(int i=0; i<n; i++)    {        cdest[i] =
csrc[i];           }}*
*main()*
*{*



*    char address[] = "s";    unsigned long warmup_size = 65536;
memCpy((address + warmup_size), address, warmup_size);*
*}*

Below is the command that caused the fault:
*./build/ARM/gem5.opt configs/example/se.py -cmd=memCpy*

Please let me know how I can resolve this. Does gem5 have a protected
region that should not be accessed.
-- 
Thanks and regards
Siva
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to