verilog/dv/riscv_regress/tests/benchmarks/coremark/core_portme.c
void portable_init(core_portable *p, int *argc, char *argv[])
{
    ee_printf("CoreMark 1.0\n");
	if (sizeof(ee_ptr_int) != sizeof(ee_u8 *)) {
		ee_printf("ERROR! Please define ee_ptr_int to a type that holds a pointer! (%u != %u)\n", sizeof(ee_ptr_int), sizeof(ee_u8 *));
	}
	if (sizeof(ee_u32) != 4) {
		ee_printf("ERROR! Please define ee_u32 to a 32b unsigned type! (%u)\n", sizeof(ee_u32));
	}
	p->portable_id=1;
}
/* Function : portable_init
	Target specific initialization code
	Test for some common mistakes.
*/
Function : portable_init
Target specific initialization code
Test for some common mistakes.
Function : portable_init Target specific initialization code Test for some common mistakes .
void portable_init(core_portable *p, int *argc, char *argv[])
{
    ee_printf("CoreMark 1.0\n");
	if (sizeof(ee_ptr_int) != sizeof(ee_u8 *)) {
		ee_printf("ERROR! Please define ee_ptr_int to a type that holds a pointer! (%u != %u)\n", sizeof(ee_ptr_int), sizeof(ee_u8 *));
	}
	if (sizeof(ee_u32) != 4) {
		ee_printf("ERROR! Please define ee_u32 to a 32b unsigned type! (%u)\n", sizeof(ee_u32));
	}
	p->portable_id=1;
}
void portable_init ( core_portable * p , int * argc , char * argv [ ] ) { ee_printf ( " \n " ) ; if ( sizeof ( ee_ptr_int ) != sizeof ( ee_u8 * ) ) { ee_printf ( " \n " , sizeof ( ee_ptr_int ) , sizeof ( ee_u8 * ) ) ; } if ( sizeof ( ee_u32 ) != 4 ) { ee_printf ( " \n " , sizeof ( ee_u32 ) ) ; } p -> portable_id = 1 ; }
Function : portable_init
Target specific initialization code
Test for some common mistakes.
Function : portable_init Target specific initialization code Test for some common mistakes .