2018-09-25 18:31:29 +02:00
|
|
|
#include "platform.h"
|
|
|
|
|
|
|
|
/* The functions in this file are only meant to support Dhrystone on an
|
|
|
|
* embedded RV32 system and are obviously incorrect in general. */
|
|
|
|
|
|
|
|
long time(void)
|
|
|
|
{
|
2024-02-22 17:11:58 +01:00
|
|
|
return get_timer_t1_value(timer) / get_timer_freq();
|
2018-09-25 18:31:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// set the number of dhrystone iterations
|
|
|
|
void __wrap_scanf(const char* fmt, int* n)
|
|
|
|
{
|
|
|
|
*n = 100000000;
|
|
|
|
}
|