trap.isa (10474:799c8ee4ecba) | trap.isa (12234:78ece221f9f5) |
---|---|
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 --- 67 unchanged lines hidden (view full) --- 76 std::string TrapImm::generateDisassembly(Addr pc, const SymbolTable *symtab) const 77 { 78 return "Disassembly of trap instruction\n"; 79 } 80}}; 81 82def template TrapExecute {{ 83 //Edit This Template When Traps Are Implemented | 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 --- 67 unchanged lines hidden (view full) --- 76 std::string TrapImm::generateDisassembly(Addr pc, const SymbolTable *symtab) const 77 { 78 return "Disassembly of trap instruction\n"; 79 } 80}}; 81 82def template TrapExecute {{ 83 //Edit This Template When Traps Are Implemented |
84 Fault %(class_name)s::execute(CPU_EXEC_CONTEXT *xc, Trace::InstRecord *traceData) const | 84 Fault %(class_name)s::execute( 85 ExecContext *xc, Trace::InstRecord *traceData) const |
85 { 86 //Write the resulting state to the execution context 87 %(op_wb)s; 88 89 //Call into the trap handler with the appropriate fault 90 return No_Fault; 91 } 92}}; --- 23 unchanged lines hidden --- | 86 { 87 //Write the resulting state to the execution context 88 %(op_wb)s; 89 90 //Call into the trap handler with the appropriate fault 91 return No_Fault; 92 } 93}}; --- 23 unchanged lines hidden --- |