control.isa (8738:66bf413b0d5b) | control.isa (8800:1882c44e510a) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2007 MIPS Technologies, Inc. 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 74 unchanged lines hidden (view full) --- 83 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, Trace::InstRecord *traceData) const 84 { 85 Fault fault = NoFault; 86 %(op_decl)s; 87 %(op_rd)s; 88 89 if (isCoprocessorEnabled(xc, 0)) { 90 %(code)s; | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2007 MIPS Technologies, Inc. 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 74 unchanged lines hidden (view full) --- 83 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, Trace::InstRecord *traceData) const 84 { 85 Fault fault = NoFault; 86 %(op_decl)s; 87 %(op_rd)s; 88 89 if (isCoprocessorEnabled(xc, 0)) { 90 %(code)s; |
91 92 if(fault == NoFault) 93 { 94 %(op_wb)s; 95 } |
|
91 } else { 92 fault = new CoprocessorUnusableFault(0); 93 } | 96 } else { 97 fault = new CoprocessorUnusableFault(0); 98 } |
94 95 if(fault == NoFault) 96 { 97 %(op_wb)s; 98 } | |
99 return fault; 100 } 101}}; 102 103def template CP1Execute {{ 104 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, Trace::InstRecord *traceData) const 105 { 106 Fault fault = NoFault; --- 141 unchanged lines hidden --- | 99 return fault; 100 } 101}}; 102 103def template CP1Execute {{ 104 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, Trace::InstRecord *traceData) const 105 { 106 Fault fault = NoFault; --- 141 unchanged lines hidden --- |