faults.hh (12850:7036cad54910) | faults.hh (13547:2aff46b9bbc5) |
---|---|
1/* 2 * Copyright (c) 2016 RISC-V Foundation 3 * Copyright (c) 2016 The University of Virginia 4 * Copyright (c) 2018 TU Dresden 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 81 unchanged lines hidden (view full) --- 90 virtual MiscReg trap_value() const { return 0; } 91 92 virtual void invokeSE(ThreadContext *tc, const StaticInstPtr &inst); 93 void invoke(ThreadContext *tc, const StaticInstPtr &inst) override; 94}; 95 96class Reset : public FaultBase 97{ | 1/* 2 * Copyright (c) 2016 RISC-V Foundation 3 * Copyright (c) 2016 The University of Virginia 4 * Copyright (c) 2018 TU Dresden 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 81 unchanged lines hidden (view full) --- 90 virtual MiscReg trap_value() const { return 0; } 91 92 virtual void invokeSE(ThreadContext *tc, const StaticInstPtr &inst); 93 void invoke(ThreadContext *tc, const StaticInstPtr &inst) override; 94}; 95 96class Reset : public FaultBase 97{ |
98 private: 99 const FaultName _name; |
|
98 | 100 |
99 public: 100 Reset() 101 : _name("reset") 102 {} | 101 public: 102 Reset() : _name("reset") {} 103 FaultName name() const override { return _name; } |
103 | 104 |
104 FaultName 105 name() const override 106 { 107 return _name; 108 } 109 110 void 111 invoke(ThreadContext *tc, const StaticInstPtr &inst = 112 StaticInst::nullStaticInstPtr) override; 113 114 private: 115 const FaultName _name; | 105 void invoke(ThreadContext *tc, const StaticInstPtr &inst = 106 StaticInst::nullStaticInstPtr) override; |
116}; 117 118class InstFault : public RiscvFault 119{ 120 protected: 121 const ExtMachInst _inst; 122 123 public: --- 113 unchanged lines hidden --- | 107}; 108 109class InstFault : public RiscvFault 110{ 111 protected: 112 const ExtMachInst _inst; 113 114 public: --- 113 unchanged lines hidden --- |