Deleted Added
sdiff udiff text old ( 7620:3d8a23caa1ef ) new ( 7626:bdd926760470 )
full compact
1// Copyright (c) 2007 The Hewlett-Packard Development Company
2// All rights reserved.
3//
4// The license below extends only to copyright in the software and shall
5// not be construed as granting a license to any other intellectual
6// property including but not limited to intellectual property relating
7// to a hardware implementation of the functionality of the software
8// licensed hereunder. You may use the software subject to the license

--- 60 unchanged lines hidden (view full) ---

69 }
70 return fault;
71 }
72}};
73
74def template MicroFpOpDeclare {{
75 class %(class_name)s : public %(base_class)s
76 {
77 protected:
78 void buildMe();
79
80 public:
81 %(class_name)s(ExtMachInst _machInst,
82 const char * instMnem, uint64_t setFlags,
83 InstRegIndex _src1, InstRegIndex _src2, InstRegIndex _dest,
84 uint8_t _dataSize, int8_t _spm);
85
86 %(class_name)s(ExtMachInst _machInst,
87 const char * instMnem,
88 InstRegIndex _src1, InstRegIndex _src2, InstRegIndex _dest,
89 uint8_t _dataSize, int8_t _spm);
90
91 %(BasicExecDeclare)s
92 };
93}};
94
95def template MicroFpOpConstructor {{
96
97 inline void %(class_name)s::buildMe()
98 {
99 %(constructor)s;
100 }
101
102 inline %(class_name)s::%(class_name)s(
103 ExtMachInst machInst, const char * instMnem,
104 InstRegIndex _src1, InstRegIndex _src2, InstRegIndex _dest,
105 uint8_t _dataSize, int8_t _spm) :
106 %(base_class)s(machInst, "%(mnemonic)s", instMnem, 0,
107 _src1, _src2, _dest, _dataSize, _spm,
108 %(op_class)s)
109 {
110 buildMe();
111 }
112
113 inline %(class_name)s::%(class_name)s(
114 ExtMachInst machInst, const char * instMnem, uint64_t setFlags,
115 InstRegIndex _src1, InstRegIndex _src2, InstRegIndex _dest,
116 uint8_t _dataSize, int8_t _spm) :
117 %(base_class)s(machInst, "%(mnemonic)s", instMnem, setFlags,
118 _src1, _src2, _dest, _dataSize, _spm,
119 %(op_class)s)
120 {
121 buildMe();
122 }
123}};
124
125let {{
126 # Make these empty strings so that concatenating onto
127 # them will always work.
128 header_output = ""
129 decoder_output = ""

--- 191 unchanged lines hidden ---