1// -*- mode:c++ -*- 2 3// -*- mode:c++ -*- 4 5// Copyright (c) 2003-2005 The Regents of The University of Michigan 6// All rights reserved. 7// 8// Redistribution and use in source and binary forms, with or without --- 27 unchanged lines hidden (view full) --- 36 /** 37 * Static instruction class for "%(mnemonic)s". 38 */ 39 class %(class_name)s : public %(base_class)s 40 { 41 public: 42 /// Constructor. 43 %(class_name)s(MachInst machInst); |
44 Fault execute(ExecContext *, 45 Trace::InstRecord *) const override; |
46 }; 47}}; 48 49// Basic instruction class constructor template. 50def template BasicConstructor {{ 51 %(class_name)s::%(class_name)s(MachInst machInst) : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s) 52 { 53 %(constructor)s; --- 43 unchanged lines hidden --- |