basic.isa (12234:78ece221f9f5) | basic.isa (12236:126ac9da6050) |
---|---|
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 | 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// Declarations for execute() methods. 35def template BasicExecDeclare {{ 36 Fault execute(ExecContext *, Trace::InstRecord *) const; 37}}; 38 | |
39// Basic instruction class declaration template. 40def template BasicDeclare {{ 41 /** 42 * Static instruction class for "%(mnemonic)s". 43 */ 44 class %(class_name)s : public %(base_class)s 45 { 46 public: 47 /// Constructor. 48 %(class_name)s(MachInst machInst); | 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); |
49 %(BasicExecDeclare)s | 44 Fault execute(ExecContext *, Trace::InstRecord *) const; |
50 }; 51}}; 52 53// Basic instruction class constructor template. 54def template BasicConstructor {{ 55 %(class_name)s::%(class_name)s(MachInst machInst) : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s) 56 { 57 %(constructor)s; --- 43 unchanged lines hidden --- | 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 --- |