errorspu_init.c revision e0e0c19eefceaf5d4ec40f9466b58a771f50e799
/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include <stdio.h>
#include "cr_spu.h"
extern SPUNamedFunctionTable _cr_error_table[];
static SPUFunctions error_functions = {
NULL, /* CHILD COPY */
NULL, /* DATA */
_cr_error_table /* THE ACTUAL FUNCTIONS */
};
unsigned int context_id,
unsigned int num_contexts )
{
(void) id;
(void) context_id;
(void) num_contexts;
(void) child;
(void) self;
return &error_functions;
}
{
(void)parent;
}
static int errorSPUCleanup(void)
{
return 1;
}
static SPUOptions errorSPUOptions[] = {
};
{
#ifdef IN_GUEST
*name = "error";
#else
*name = "hosterror";
#endif
*init = errorSPUInit;
return 1;
}