# define Dll_Export __declspec(dllexport)
#include "vxl_acc_user.h"
#include "vxl_veriuser.h"
#include "cache_funext.h"
Dll_Export
char *veriuser_version_str
=
"=== OpenSparc T2 cache loadpli ===\n";
Dll_Export
bool err_intercept(level
,facility
,code
)
Dll_Export
static s_tfcell cache_veriusertfs
[] =
/*** Template for an entry:
* { usertask|userfunction, data,
* checktf(), sizetf(), calltf(), misctff(),
* "$tfname", forwref?, Vtool?, ErrMsg?
* { usertask, 0, my_check, 0, my_func, my_misctf, "$my_task"
# include "cache_fundef.c"
/*** add user entries here ***/
{0} /*** final entry must be 0 ***/
Dll_Export p_tfcell
cache_pli_boot()
io_printf("*** Registering OpenSparc T2 L1/L2 cache-warm system tasks...\n");
return cache_veriusertfs
;
Dll_Export
void init_usertfs()
mallopt(M_MMAP_MAX
, (sizeof(void*) > 4) ? 4096*1024 : 65536);
for (usertf
= veriusertfs
; usertf
; usertf
++){
mti_RegisterUserTF(usertf
);
Dll_Export
int (*endofcompile_routines
[])() =
/*** my_eoc_routine, ***/
0 /*** final entry must be 0 ***/