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 --- 17 unchanged lines hidden (view full) --- 26// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30// 31// Authors: Steve Reinhardt 32// Korey Sewell 33 |
34// Basic instruction class declaration template. 35def template BasicDeclare {{ 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 *, Trace::InstRecord *) const; |
45 }; 46}}; 47 48// Basic instruction class constructor template. 49def template BasicConstructor {{ 50 %(class_name)s::%(class_name)s(MachInst machInst) : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s) 51 { 52 %(constructor)s; --- 43 unchanged lines hidden --- |