Hi Bobby,

In my workload, am simply calling pointer++ once, but I do not know how it
automatically increments as if I am calling pointer++ twice,

here is an example of a very simple version of my workload which also
provides the incorrect address reading

int main()
{
    // spm address starts from here
     // uintptr_t address= 10002432; // compiler makes sure to convert this
to binary for the pc
    int *Pointer = (int*) 10002432;
    int *Pointer2 = Pointer;
   int array[20] ={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
    for (int i = 0; i < 20; ++i)
    {
        *Pointer = array[i];
         Pointer++;
    }
    printf("size of pointer is%zu\n",sizeof(Pointer) );
for (int i = 0; i < 20; ++i)
    {
        printf("%d\n",*Pointer2 );
        Pointer2++;
    }
}

and the config file that I am using is as follows:
https://drive.google.com/file/d/1JIhV89_Fz_paGTOoads5D-11fhq0_pEt/view?usp=sharing

I cannot understand what I am missing or doing wrong.

Thanks
_______________________________________________
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