basic.isa (10196:be0e1724eb39) | basic.isa (12234:78ece221f9f5) |
---|---|
1// Copyright (c) 2007 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// The license below extends only to copyright in the software and shall 5// not be construed as granting a license to any other intellectual 6// property including but not limited to intellectual property relating 7// to a hardware implementation of the functionality of the software 8// licensed hereunder. You may use the software subject to the license --- 26 unchanged lines hidden (view full) --- 35// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 36// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 37// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 38// 39// Authors: Gabe Black 40 41// Declarations for execute() methods. 42def template BasicExecDeclare {{ | 1// Copyright (c) 2007 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// The license below extends only to copyright in the software and shall 5// not be construed as granting a license to any other intellectual 6// property including but not limited to intellectual property relating 7// to a hardware implementation of the functionality of the software 8// licensed hereunder. You may use the software subject to the license --- 26 unchanged lines hidden (view full) --- 35// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 36// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 37// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 38// 39// Authors: Gabe Black 40 41// Declarations for execute() methods. 42def template BasicExecDeclare {{ |
43 Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const; | 43 Fault execute(ExecContext *, Trace::InstRecord *) const; |
44}}; 45 46// Definitions of execute methods that panic. 47def template BasicExecPanic {{ | 44}}; 45 46// Definitions of execute methods that panic. 47def template BasicExecPanic {{ |
48 Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const | 48 Fault execute(ExecContext *, Trace::InstRecord *) const |
49 { 50 panic("Execute method called when it shouldn't!"); 51 M5_DUMMY_RETURN 52 } 53}}; 54 55// Basic instruction class declaration template. 56def template BasicDeclare {{ --- 15 unchanged lines hidden (view full) --- 72 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s) 73 { 74 %(constructor)s; 75 } 76}}; 77 78// Basic instruction class execute method template. 79def template BasicExecute {{ | 49 { 50 panic("Execute method called when it shouldn't!"); 51 M5_DUMMY_RETURN 52 } 53}}; 54 55// Basic instruction class declaration template. 56def template BasicDeclare {{ --- 15 unchanged lines hidden (view full) --- 72 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s) 73 { 74 %(constructor)s; 75 } 76}}; 77 78// Basic instruction class execute method template. 79def template BasicExecute {{ |
80 Fault %(class_name)s::execute(CPU_EXEC_CONTEXT *xc, | 80 Fault %(class_name)s::execute(ExecContext *xc, |
81 Trace::InstRecord *traceData) const 82 { 83 Fault fault = NoFault; 84 85 %(fp_enable_check)s; 86 %(op_decl)s; 87 %(op_rd)s; 88 %(code)s; --- 26 unchanged lines hidden --- | 81 Trace::InstRecord *traceData) const 82 { 83 Fault fault = NoFault; 84 85 %(fp_enable_check)s; 86 %(op_decl)s; 87 %(op_rd)s; 88 %(code)s; --- 26 unchanged lines hidden --- |