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 --- 19 unchanged lines hidden (view full) --- 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 --- 11 unchanged lines hidden (view full) --- 56 { 57 %(constructor)s; 58 } 59}}; 60 61 62// Basic instruction class execute method template. 63def template BasicExecute {{ |
64 Fault %(class_name)s::execute( 65 ExecContext *xc, Trace::InstRecord *traceData) const |
66 { 67 Fault fault = NoFault; 68 69 %(fp_enable_check)s; 70 %(op_decl)s; 71 %(op_rd)s; 72 if(fault == NoFault) 73 { --- 27 unchanged lines hidden --- |