This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

FVP just can't prefetch,why?!!

i built a A9 FVP model in my proj and do some prefetch work,here is my code:


#include <stdio.h>
#include <stdlib.h>

int main(void) {
int a = 30;
int b = 10;
float c[20] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
float d[64] = {0};
float *cc = c;
float *dd = d;
int result = 19;
puts("!!!Hello FVP!!!"); /* prints !!!Hello FVP!!! */
__asm__ volatile(
"mov r0, #4 \n"
"0: \n"
"vld1.f32 {q0}, [%0: 128] \n"
"vst1.f32 {q0}, [%1: 128] \n"
"add %0, %0, #32 \n"
"add %1, %1, #32 \n"
"subs r0, r0, #1 \n"
"bne 0b \n"
:"=r"(cc),
"=r"(dd)
:"0"(cc),
"1"(dd)
:
);
return EXIT_SUCCESS;
}

so, is there any ideas could help me ?

thanks so much!!!

Parents Reply Children
No data