MEM: Move port creation to the memory object(s) construction
[gem5.git] / src / dev / x86 / intdev.cc
index a991005bc95a31e45899919487e4a388aa025b31..23ec20b9a07f3fefd86b14a0c2f008918bdcdfc9 100644 (file)
@@ -51,10 +51,10 @@ X86ISA::IntDev::IntPort::sendMessage(ApicList apics,
 void
 X86ISA::IntDev::init()
 {
-    if (!intPort) {
+    if (!intPort.isConnected()) {
         panic("Int port not connected to anything!");
     }
-    intPort->sendRangeChange();
+    intPort.sendRangeChange();
 }
 
 X86ISA::IntSourcePin *