sim.h
1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*************************************************************************
*
* File: sim.h
*
* This file contains definitions for simulation environment.
*
* $Header: /root/leakn64/depot/rf/sw/n64os20l/iosim/src/sim.h,v 1.2 2002/05/30 05:54:41 whs Exp $
*
*/
#ifdef __sgi__
#include <sys/inst.h>
#endif
#include <sys/types.h>
typedef union mips_instruction minst_t;
typedef void (*entry_t)(void);
typedef struct descriptor {
entry_t entry;
long addr;
int size;
} descriptor_t;
/*
* exports from breakpoint.c
*/
extern void breakpoint_init(descriptor_t *);
/*
* exports from address.c
*/
extern void ExceptionHandlerInit(void);
/*
* exports from misc.c
*/
extern void ExecServer(char *);
extern void WaitServer(void);
extern int FindServer(void);
extern int LoadApp(char *, descriptor_t *);
extern const char *elf_error(void);
/*
* exports from memory.c
*/
typedef unsigned int dir_t;
typedef unsigned int sz_t;
typedef enum {REF_INST, REF_DATA} ref_t;
extern void memory_access(ulong, ref_t, dir_t, sz_t);
extern void memory_stats(void);
#ifndef NULL
#define NULL 0
#endif