Adjustments to finalize for experiment

This commit is contained in:
2020-01-21 10:35:15 -05:00
parent 54e64d982e
commit c6fcb4aa66
2 changed files with 97 additions and 98 deletions

View File

@@ -57,7 +57,6 @@ fs_load:
fadd s30, s30, s31 fadd s30, s30, s31
mov v5.s[0], v30.s[0] mov v5.s[0], v30.s[0]
fadd s30, s30, s31 fadd s30, s30, s31
mov v6.s[3], v30.s[0] mov v6.s[3], v30.s[0]
fadd s30, s30, s31 fadd s30, s30, s31
@@ -185,5 +184,4 @@ fs_routine:
fdiv v29.4s, v29.4s, v2.4s fdiv v29.4s, v29.4s, v2.4s
fdiv v30.4s, v30.4s, v1.4s fdiv v30.4s, v30.4s, v1.4s
mov w0, v16.s[3]
ret ret

View File

@@ -23,15 +23,15 @@ TEXT_SECTION
unsigned long long _start(float *init_a) unsigned long long _start(float *init_a)
{ {
int i; int i;
unsigned long long check;
unsigned long long start, end, report; unsigned long long start, end, report;
unsigned long long timer_deadline_enter = 0x10000b874; unsigned long long timer_deadline_enter = 0x10000b874;
unsigned long long halt = 0x1000004fc; unsigned long long halt = 0x1000004fc;
fs_load(init_a, 1); while(1)
{
__asm__ volatile ("mrs %0, cntpct_el0" : "=r" (start)); __asm__ volatile ("mrs %0, cntpct_el0" : "=r" (start));
for(i = 0; i < 8; i++) check = fs_routine(); fs_load(init_a, 1);
for(i = 0; i < 8; i++) fs_routine();
__asm__ volatile ("mrs %0, cntpct_el0" : "=r" (end)); __asm__ volatile ("mrs %0, cntpct_el0" : "=r" (end));
if(2 * end - start - 64 > 0) if(2 * end - start - 64 > 0)
@@ -39,7 +39,8 @@ unsigned long long _start(float *init_a)
((BOOTROM_FUNC) timer_deadline_enter)(2 * end - start - 64, ((BOOTROM_FUNC) 0x10000b924)); ((BOOTROM_FUNC) timer_deadline_enter)(2 * end - start - 64, ((BOOTROM_FUNC) 0x10000b924));
((BOOTROM_FUNC) halt)(); ((BOOTROM_FUNC) halt)();
} }
}
__asm__ volatile ("mrs %0, cntpct_el0" : "=r" (report)); __asm__ volatile ("mrs %0, cntpct_el0" : "=r" (report));
return report - start; return end - start;
} }