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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/diag/prdf/common/framework/rule/prdfGroup.H $ */
/* */
/* IBM CONFIDENTIAL */
/* */
/* COPYRIGHT International Business Machines Corp. 2004,2013 */
/* */
/* p1 */
/* */
/* Object Code Only (OCO) source materials */
/* Licensed Internal Code Source Materials */
/* IBM HostBoot Licensed Internal Code */
/* */
/* The source code for this program is not published or otherwise */
/* divested of its trade secrets, irrespective of what has been */
/* deposited with the U.S. Copyright Office. */
/* */
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
#ifndef __PRDFGROUP_H
#define __PRDFGROUP_H
#include <iipErrorRegisterType.h>
#include <iipResetErrorRegister.h>
#include <map>
#include <utility> // for pair
#include <vector>
#include <prdfFilters.H>
namespace PRDF
{
// forward decls
class Resolution;
class ResolutionMap;
class SCAN_COMM_REGISTER_CLASS;
class ErrorRegister;
// end forward decls
typedef std::pair<ResetAndMaskErrorRegister::ResetRegisterVector,
ResetAndMaskErrorRegister::ResetRegisterVector>
ResetAndMaskPair;
/*class ResetAndMaskPair
: public std::pair<ResetAndMaskErrorRegister::ResetRegisterVector,
ResetAndMaskErrorRegister::ResetRegisterVector>
{};*/
class Group : public ErrorRegisterType
{
public:
Group(Resolution & i_default)
: cv_nextBitForTranspose(64), cv_defaultRes(i_default) {};
~Group();
int32_t Analyze(STEP_CODE_DATA_STRUCT &);
void Add(SCAN_COMM_REGISTER_CLASS *,
const uint8_t *,
size_t,
Resolution &,
ResetAndMaskPair &,
uint16_t, // SCRID.
bool
); // add standard action.
void Add(SCAN_COMM_REGISTER_CLASS * i_reg,
Resolution & i_action,
ResetAndMaskPair &,
uint16_t i_scrID); // add default action.
void AddFilter(FilterClass * i_filter);
/**
* No Filters applied by this Error Register - so undo is no-op
*/
virtual bool FilterUndo(BitKey & i_bit_list) { return false; }
protected:
const BIT_STRING_CLASS & Read(ATTENTION_TYPE i_attn);
BIT_LIST_CLASS Filter(const BIT_STRING_CLASS &);
int32_t Lookup(STEP_CODE_DATA_STRUCT &, BIT_LIST_CLASS &);
int32_t Reset(const BIT_LIST_CLASS &, STEP_CODE_DATA_STRUCT &);
typedef std::vector<ErrorRegister *> RegisterList_t;
typedef std::vector<FilterClass *> FilterList_t;
typedef std::map<SCAN_COMM_REGISTER_CLASS *, ResolutionMap *> ResMaps_t;
ResMaps_t cv_resMaps;
RegisterList_t cv_errRegs;
FilterList_t cv_filters;
uint8_t cv_nextBitForTranspose;
Resolution & cv_defaultRes;
};
} // end of namespace PRDF
#endif
|