print_insts.h
1.03 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
/*
* Copyright (C) 1996-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:10 $
*****************************************************************/
#ifndef _PRINT_INSTS_H
#define _PRINT_INSTS_H
extern void PrintInstsInit(void);
extern int PrintInstTclCmd(ClientData clientData, Tcl_Interp *interp,
int argc, char *argv[]);
extern void PrintInstruction(Inst, int);
extern char printInstMask[SIM_MAXCPUS];
extern int printInstSkipMask;
#ifdef PRINT_INSTRUCTIONS
# define PRINT_INSTRUCTION(_i) \
{if ((printInstMask[P->myNum]) \
&& (!(STATS_VALUE(P->myNum, numInstructions) & printInstSkipMask))) { \
PrintInstruction(_i,P->myNum); }}
#else
# define PRINT_INSTRUCTION(_i) {}
#endif /* PRINT_INSTRUCTIONS */
#endif /* _PRINT_INSTS_H */