From 14c7d18bdb07dd9bfdef886891870600f39d1151 Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Sun, 23 Jul 2023 16:28:31 +0200 Subject: [PATCH] Revert "Prevents crashing for Big Mac" This reverts commit 5787d49e9b841015a3f15b1de5dbda2244f4bcb1. --- devices/ioctrl/heathrow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/ioctrl/heathrow.cpp b/devices/ioctrl/heathrow.cpp index 155fb88..5efe001 100644 --- a/devices/ioctrl/heathrow.cpp +++ b/devices/ioctrl/heathrow.cpp @@ -94,7 +94,7 @@ HeathrowIC::HeathrowIC() : PCIDevice("mac-io/heathrow"), InterruptCtrl() this->floppy_dma->register_dma_int(this, 2); // connect Ethernet HW - this->bmac = dynamic_cast(gMachineObj->get_comp_by_name("BigMacHeathrow")); + this->bmac = dynamic_cast(gMachineObj->get_comp_by_type(HWCompType::ETHER_MAC)); // set EMMO pin status (active low) this->emmo_pin = GET_BIN_PROP("emmo") ^ 1;