diff options
author | Gabe Black <gabeblack@google.com> | 2019-09-06 15:14:00 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-09-20 17:55:13 +0000 |
commit | 679ed0eec5e563a889b981231864e272c8e22c00 (patch) | |
tree | f591d3bc87e0e2daf2ad42d14495224d86b338bc /src/dev/x86/intdev.hh | |
parent | ab376064bdfa9796eebad5ee8d84c766e7a30bd6 (diff) | |
download | gem5-679ed0eec5e563a889b981231864e272c8e22c00.tar.xz |
dev, x86: Delete the now unused X86 specific interrupt pins/lines.
Change-Id: I3915f0ad673119b551dcc4c5cedec180a9b88735
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20702
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/dev/x86/intdev.hh')
-rw-r--r-- | src/dev/x86/intdev.hh | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/src/dev/x86/intdev.hh b/src/dev/x86/intdev.hh index 2e3e99df0..0cc2be032 100644 --- a/src/dev/x86/intdev.hh +++ b/src/dev/x86/intdev.hh @@ -50,9 +50,6 @@ #include "arch/x86/intmessage.hh" #include "arch/x86/x86_traits.hh" #include "mem/mport.hh" -#include "params/X86IntLine.hh" -#include "params/X86IntSinkPin.hh" -#include "params/X86IntSourcePin.hh" #include "sim/sim_object.hh" namespace X86ISA { @@ -121,24 +118,6 @@ class IntDevice virtual void init(); - virtual void - signalInterrupt(int line) - { - panic("signalInterrupt not implemented.\n"); - } - - virtual void - raiseInterruptPin(int number) - { - panic("raiseInterruptPin not implemented.\n"); - } - - virtual void - lowerInterruptPin(int number) - { - panic("lowerInterruptPin not implemented.\n"); - } - virtual Tick recvMessage(PacketPtr pkt) { @@ -160,90 +139,6 @@ class IntDevice } }; -class IntSinkPin : public SimObject -{ - public: - IntDevice * device; - int number; - - typedef X86IntSinkPinParams Params; - - const Params * - params() const - { - return dynamic_cast<const Params *>(_params); - } - - IntSinkPin(Params *p) : SimObject(p), - device(dynamic_cast<IntDevice *>(p->device)), number(p->number) - { - assert(device); - } -}; - -class IntSourcePin : public SimObject -{ - protected: - std::vector<IntSinkPin *> sinks; - - public: - typedef X86IntSourcePinParams Params; - - const Params * - params() const - { - return dynamic_cast<const Params *>(_params); - } - - void - addSink(IntSinkPin *sink) - { - sinks.push_back(sink); - } - - void - raise() - { - for (int i = 0; i < sinks.size(); i++) { - const IntSinkPin &pin = *sinks[i]; - pin.device->raiseInterruptPin(pin.number); - } - } - - void - lower() - { - for (int i = 0; i < sinks.size(); i++) { - const IntSinkPin &pin = *sinks[i]; - pin.device->lowerInterruptPin(pin.number); - } - } - - IntSourcePin(Params *p) : SimObject(p) - {} -}; - -class IntLine : public SimObject -{ - protected: - IntSourcePin *source; - IntSinkPin *sink; - - public: - typedef X86IntLineParams Params; - - const Params * - params() const - { - return dynamic_cast<const Params *>(_params); - } - - IntLine(Params *p) : SimObject(p), source(p->source), sink(p->sink) - { - source->addSink(sink); - } -}; - } // namespace X86ISA #endif //__DEV_X86_INTDEV_HH__ |