print_insts.h
1.32 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
/*
* Copyright (C) 1998 by the Board of Trustees
* of Leland Stanford Junior University.
* Copyright (C) 1998 Digital Equipment Corporation
*
* This file is part of the SimOS distribution.
* See LICENSE file for terms of the license.
*
*/
/*
* Copyright (C) 1998 by the Board of Trustees
* of Leland Stanford Junior University.
*
* This file is part of the SimOS distribution.
* See LICENSE file for terms of the license.
*
*/
/****************************************************************
* print_insts.h
*
* $Author: blythe $
* $Date: 2002/05/29 01:09:11 $
*****************************************************************/
/* Undefine this when you want this feature compiled in */
#ifndef PRINT_INSTRUCTIONS
#define PRINT_INSTRUCTIONS
#endif
#ifndef _PRINT_INSTS_H
#define _PRINT_INSTS_H
extern void PrintInstsInit(Tcl_Interp *);
extern int PrintInstTclCmd(ClientData clientData, Tcl_Interp *interp, int argc, char *argv[]);
extern void PrintInstruction(AlphaState *, Inst);
extern char printInstMask[SIM_MAXCPUS];
extern int printInstSkipMask;
#ifdef PRINT_INSTRUCTIONS
# define PRINT_INSTRUCTION(_p,_i) {if (printInstMask[_p->myNum]) \
PrintInstruction(_p,_i); }
#else
# define PRINT_INSTRUCTION(_i) {}
#endif /* PRINT_INSTRUCTIONS */
#endif /* _PRINT_INSTS_H */