basic.isa (10184:bbfa3152bdea) | basic.isa (10196:be0e1724eb39) |
---|---|
1// Copyright (c) 2006-2007 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 99 unchanged lines hidden (view full) --- 108 { 109 %(constructor)s; 110 } 111}}; 112 113// Basic instruction class execute method template. 114def template BasicExecute {{ 115 Fault | 1// Copyright (c) 2006-2007 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 99 unchanged lines hidden (view full) --- 108 { 109 %(constructor)s; 110 } 111}}; 112 113// Basic instruction class execute method template. 114def template BasicExecute {{ 115 Fault |
116 %(class_name)s::execute(%(CPU_exec_context)s *xc, | 116 %(class_name)s::execute(CPU_EXEC_CONTEXT *xc, |
117 Trace::InstRecord *traceData) const 118 { 119 Fault fault = NoFault; 120 121 %(fp_enable_check)s; 122 %(op_decl)s; 123 %(op_rd)s; 124 %(code)s; 125 126 if (fault == NoFault) { 127 %(op_wb)s; 128 } 129 return fault; 130 } 131}}; 132 133def template DoFpOpExecute {{ 134 Fault | 117 Trace::InstRecord *traceData) const 118 { 119 Fault fault = NoFault; 120 121 %(fp_enable_check)s; 122 %(op_decl)s; 123 %(op_rd)s; 124 %(code)s; 125 126 if (fault == NoFault) { 127 %(op_wb)s; 128 } 129 return fault; 130 } 131}}; 132 133def template DoFpOpExecute {{ 134 Fault |
135 %(class_name)s::doFpOp(%(CPU_exec_context)s *xc, | 135 %(class_name)s::doFpOp(CPU_EXEC_CONTEXT *xc, |
136 Trace::InstRecord *traceData) const 137 { 138 Fault fault = NoFault; 139 %(op_decl)s; 140 %(op_rd)s; 141 %(fp_code)s; 142 if (fault == NoFault) { 143 %(op_wb)s; --- 53 unchanged lines hidden --- | 136 Trace::InstRecord *traceData) const 137 { 138 Fault fault = NoFault; 139 %(op_decl)s; 140 %(op_rd)s; 141 %(fp_code)s; 142 if (fault == NoFault) { 143 %(op_wb)s; --- 53 unchanged lines hidden --- |