Line 35... |
Line 35... |
#define EXE_LOG_SOFTWARE 2 /* Simple with some register output*/
|
#define EXE_LOG_SOFTWARE 2 /* Simple with some register output*/
|
|
|
#define STR_SIZE (256)
|
#define STR_SIZE (256)
|
|
|
struct config {
|
struct config {
|
|
struct { /* External linkage for SystemC */
|
|
void *class_ptr;
|
|
unsigned long int (*read_up)( void *class_ptr,
|
|
unsigned long int addr,
|
|
unsigned long int mask);
|
|
void (*write_up)( void *class_ptr,
|
|
unsigned long int addr,
|
|
unsigned long int mask,
|
|
unsigned long int wdata );
|
|
} ext;
|
|
|
struct {
|
struct {
|
int enabled; /* Is tick timer enabled? */
|
int enabled; /* Is tick timer enabled? */
|
} tick;
|
} tick;
|
|
|
struct {
|
struct {
|
Line 159... |
Line 170... |
char *filename; /* Original Command Simulator file (CZ) */
|
char *filename; /* Original Command Simulator file (CZ) */
|
char script_fn[STR_SIZE]; /* Script file read */
|
char script_fn[STR_SIZE]; /* Script file read */
|
int iprompt; /* Interactive prompt */
|
int iprompt; /* Interactive prompt */
|
int iprompt_run; /* Interactive prompt is running */
|
int iprompt_run; /* Interactive prompt is running */
|
long long cycles; /* Cycles counts fetch stages */
|
long long cycles; /* Cycles counts fetch stages */
|
|
long long int end_cycles; /* JPB. Cycles to end of quantum */
|
|
double time_point; /* JPB. Time point in the simulation */
|
|
unsigned long int ext_int; /* JPB. External interrupt flags */
|
|
|
int mem_cycles; /* Each cycle has counter of mem_cycles;
|
int mem_cycles; /* Each cycle has counter of mem_cycles;
|
this value is joined with cycles
|
this value is joined with cycles
|
at the end of the cycle; no sim
|
at the end of the cycle; no sim
|
originated memory accesses should be
|
originated memory accesses should be
|
Line 281... |
Line 295... |
#define CONFIG_ERROR(s) {fprintf (stderr, "ERROR: config.%s:%s\n", cur_section->name, s); if (runtime.sim.init) exit (1);}
|
#define CONFIG_ERROR(s) {fprintf (stderr, "ERROR: config.%s:%s\n", cur_section->name, s); if (runtime.sim.init) exit (1);}
|
|
|
/* FIXME: These will disapeer one day... */
|
/* FIXME: These will disapeer one day... */
|
void reg_pic_sec(void);
|
void reg_pic_sec(void);
|
void reg_mc_sec(void);
|
void reg_mc_sec(void);
|
|
void reg_generic_sec(void); /* JPB */
|
void reg_uart_sec(void);
|
void reg_uart_sec(void);
|
void reg_dma_sec(void);
|
void reg_dma_sec(void);
|
void reg_memory_sec(void);
|
void reg_memory_sec(void);
|
void reg_debug_sec(void);
|
void reg_debug_sec(void);
|
void reg_vapi_sec(void);
|
void reg_vapi_sec(void);
|