trap.isa (5268:5bfc53fe60e7) | trap.isa (10196:be0e1724eb39) |
---|---|
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)s *xc, Trace::InstRecord *traceData) const | 84 Fault %(class_name)s::execute(CPU_EXEC_CONTEXT *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 --- | 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 --- |