Deleted Added
sdiff udiff text old ( 12234:78ece221f9f5 ) new ( 12236:126ac9da6050 )
full compact
1// -*- mode:c++ -*-
2
3// Copyright (c) 2011 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

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

35// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
36// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
39// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40//
41// Authors: Stephen Hines
42
43// Basic instruction class declaration template.
44def template BasicDeclare {{
45 /**
46 * Static instruction class for "%(mnemonic)s".
47 */
48 class %(class_name)s : public %(base_class)s
49 {
50 public:
51 /// Constructor.
52 %(class_name)s(ExtMachInst machInst);
53 Fault execute(ExecContext *, Trace::InstRecord *) const;
54 };
55}};
56
57// Basic instruction class constructor template.
58def template BasicConstructor {{
59 %(class_name)s::%(class_name)s(ExtMachInst machInst) : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s)
60 {
61 %(constructor)s;

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

98def template BasicDecode {{
99 return new %(class_name)s(machInst);
100}};
101
102// Basic decode template, passing mnemonic in as string arg to constructor.
103def template BasicDecodeWithMnemonic {{
104 return new %(class_name)s("%(mnemonic)s", machInst);
105}};