64a65
> #include "dev/x86/intdev.hh"
67d67
< #include "sim/sim_object.hh"
74c74
< class Interrupts : public BasicPioDevice
---
> class Interrupts : public BasicPioDevice, IntDev
110a111
> Tick recvMessage(PacketPtr pkt);
118a120,126
> void getIntAddrRange(AddrRangeList &range_list)
> {
> range_list.clear();
> range_list.push_back(RangeEx(x86InterruptAddress(0, 0),
> x86InterruptAddress(0, 0) + PhysAddrAPICRangeSize));
> }
>
126c134
< Interrupts(Params * p) : BasicPioDevice(p),
---
> Interrupts(Params * p) : BasicPioDevice(p), IntDev(this),
135a144,150
> Port *getPort(const std::string &if_name, int idx = -1)
> {
> if (if_name == "int_port")
> return intPort;
> return BasicPioDevice::getPort(if_name, idx);
> }
>