add some experiments with the cache

This commit is contained in:
2020-02-23 20:24:51 -05:00
parent eb225122e5
commit a5995cd4aa
5 changed files with 102 additions and 0 deletions

View 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()
{
}