basic.isa (10196:be0e1724eb39) | basic.isa (12234:78ece221f9f5) |
---|---|
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 {{ | 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(%(CPU_exec_context)s *, Trace::InstRecord *) const; | 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 {{ | 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(CPU_EXEC_CONTEXT *xc, Trace::InstRecord *traceData) const | 64 Fault %(class_name)s::execute( 65 ExecContext *xc, Trace::InstRecord *traceData) const |
65 { 66 Fault fault = NoFault; 67 68 %(fp_enable_check)s; 69 %(op_decl)s; 70 %(op_rd)s; 71 if(fault == NoFault) 72 { --- 27 unchanged lines hidden --- | 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 --- |