add some experiments with the cache
This commit is contained in:
33
c8_remote/lib/payload/src/cachelib.c
Normal file
33
c8_remote/lib/payload/src/cachelib.c
Normal file
@@ -0,0 +1,33 @@
|
||||
#include "bootrom_func.h"
|
||||
#include "cacheutil.h"
|
||||
|
||||
|
||||
PAYLOAD_SECTION
|
||||
unsigned long long l1_experiment()
|
||||
{
|
||||
int i;
|
||||
unsigned long long start, f;
|
||||
volatile unsigned long long val = 0;
|
||||
clean_inv_l1_va((unsigned long long *) &val);
|
||||
|
||||
start = get_ticks();
|
||||
for(i = 0; i < 10000000; i++)
|
||||
{
|
||||
val;
|
||||
clean_inv_l1_va((unsigned long long *) &val);
|
||||
}
|
||||
|
||||
return get_ticks() - start;
|
||||
}
|
||||
|
||||
PAYLOAD_SECTION
|
||||
unsigned long long entry_sync()
|
||||
{
|
||||
return l1_experiment();
|
||||
}
|
||||
|
||||
PAYLOAD_SECTION
|
||||
void entry_async()
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user