Adjustments to finalize for experiment
This commit is contained in:
@@ -57,7 +57,6 @@ fs_load:
|
||||
fadd s30, s30, s31
|
||||
mov v5.s[0], v30.s[0]
|
||||
|
||||
|
||||
fadd s30, s30, s31
|
||||
mov v6.s[3], v30.s[0]
|
||||
fadd s30, s30, s31
|
||||
@@ -185,5 +184,4 @@ fs_routine:
|
||||
fdiv v29.4s, v29.4s, v2.4s
|
||||
fdiv v30.4s, v30.4s, v1.4s
|
||||
|
||||
mov w0, v16.s[3]
|
||||
ret
|
||||
|
||||
@@ -23,15 +23,15 @@ TEXT_SECTION
|
||||
unsigned long long _start(float *init_a)
|
||||
{
|
||||
int i;
|
||||
unsigned long long check;
|
||||
unsigned long long start, end, report;
|
||||
unsigned long long timer_deadline_enter = 0x10000b874;
|
||||
unsigned long long halt = 0x1000004fc;
|
||||
|
||||
fs_load(init_a, 1);
|
||||
|
||||
while(1)
|
||||
{
|
||||
__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));
|
||||
|
||||
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) halt)();
|
||||
}
|
||||
}
|
||||
|
||||
__asm__ volatile ("mrs %0, cntpct_el0" : "=r" (report));
|
||||
return report - start;
|
||||
return end - start;
|
||||
}
|
||||
Reference in New Issue
Block a user