/[dynamips]/trunk/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

Annotation of /trunk/dynamips.h

Parent Directory Parent Directory | Revision Log Revision Log


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

1 dpavlin 1 /*
2 dpavlin 7 * Cisco router simulation platform.
3 dpavlin 1 * 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 dpavlin 7 #define DEBUG_MTS_MAP_VIRT 1
22 dpavlin 1 #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 dpavlin 7 #define DEBUG_MTS_STATS 1 /* MTS cache performance */
27 dpavlin 5 #define DEBUG_INSN_PERF_CNT 0 /* Instruction performance counter */
28     #define DEBUG_BLOCK_PERF_CNT 0 /* Block performance counter */
29 dpavlin 1 #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 dpavlin 7 #define MEMLOG_ENABLE 0 /* Memlogger (fast memop must be off) */
36 dpavlin 1 #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