/[dynamips]/upstream/dynamips-0.2.7-RC1/dynamips.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /upstream/dynamips-0.2.7-RC1/dynamips.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7 - (show annotations)
Sat Oct 6 16:23:47 2007 UTC (16 years, 6 months ago) by dpavlin
File MIME type: text/plain
File size: 1694 byte(s)
dynamips-0.2.7-RC1

1 /*
2 * Cisco router simulation platform.
3 * Copyright (c) 2005,2006 Christophe Fillot (cf@utc.fr)
4 */
5
6 #ifndef __DYNAMIPS_H__
7 #define __DYNAMIPS_H__
8
9 #include <libelf.h>
10
11 #include "utils.h"
12
13 /* Debugging flags */
14 #define DEBUG_BLOCK_SCAN 0
15 #define DEBUG_BLOCK_COMPILE 0
16 #define DEBUG_BLOCK_PATCH 0
17 #define DEBUG_BLOCK_CHUNK 0
18 #define DEBUG_BLOCK_TIMESTAMP 0 /* block timestamping (little overhead) */
19 #define DEBUG_SYM_TREE 0 /* use symbol tree (slow) */
20 #define DEBUG_MTS_MAP_DEV 0
21 #define DEBUG_MTS_MAP_VIRT 1
22 #define DEBUG_MTS_ACC_U 1 /* undefined memory */
23 #define DEBUG_MTS_ACC_T 1 /* tlb exception */
24 #define DEBUG_MTS_ACC_AE 1 /* address error exception */
25 #define DEBUG_MTS_DEV 0 /* debugging for device access */
26 #define DEBUG_MTS_STATS 1 /* MTS cache performance */
27 #define DEBUG_INSN_PERF_CNT 0 /* Instruction performance counter */
28 #define DEBUG_BLOCK_PERF_CNT 0 /* Block performance counter */
29 #define DEBUG_TLB_ACTIVITY 0
30 #define DEBUG_SYSCALL 0
31 #define DEBUG_CACHE 0
32 #define DEBUG_JR0 0 /* Debug register jumps to 0 */
33
34 /* Feature flags */
35 #define MEMLOG_ENABLE 0 /* Memlogger (fast memop must be off) */
36 #define BREAKPOINT_ENABLE 0 /* Virtual Breakpoints */
37 #define NJM_STATS_ENABLE 1 /* Non-JIT mode stats (little overhead) */
38
39 /* Symbol */
40 struct symbol {
41 m_uint64_t addr;
42 char name[0];
43 };
44
45 /* ROM identification tag */
46 #define ROM_ID 0x1e94b3df
47
48 /* Global log file */
49 extern FILE *log_file;
50
51 /* Software version */
52 extern const char *sw_version;
53
54 /* Delete all objects */
55 void dynamips_reset(void);
56
57 #endif

  ViewVC Help
Powered by ViewVC 1.1.26