From b61a7c4aea120959e9aeeb9b50c25f2b6369d30b Mon Sep 17 00:00:00 2001 From: joevt Date: Wed, 21 Dec 2022 02:24:22 -0800 Subject: [PATCH] Log something from machine initialization. The machine type and its corresponding source file name should appear once in the log output. --- machines/machinecatalyst.cpp | 2 ++ machines/machinegazelle.cpp | 2 ++ machines/machinegossamer.cpp | 2 ++ machines/machinepdm.cpp | 2 ++ machines/machinetnt.cpp | 2 ++ 5 files changed, 10 insertions(+) diff --git a/machines/machinecatalyst.cpp b/machines/machinecatalyst.cpp index ae0ddf7..3cf0c09 100644 --- a/machines/machinecatalyst.cpp +++ b/machines/machinecatalyst.cpp @@ -36,6 +36,8 @@ along with this program. If not, see . int initialize_catalyst(std::string& id) { + LOG_F(INFO, "Building machine catalyst"); + PlatinumCtrl* platinum_obj; PCIHost *pci_host = dynamic_cast(gMachineObj->get_comp_by_name("Bandit1")); diff --git a/machines/machinegazelle.cpp b/machines/machinegazelle.cpp index a109004..26a6dcb 100644 --- a/machines/machinegazelle.cpp +++ b/machines/machinegazelle.cpp @@ -47,6 +47,8 @@ int get_cpu_pll_value(const uint64_t cpu_freq_hz) { int initialize_gazelle(std::string& id) { + LOG_F(INFO, "Building machine gazelle"); + PCIHost *pci_host = dynamic_cast(gMachineObj->get_comp_by_name("PsxPci1")); // register O'Hare I/O controller with the main PCI bus diff --git a/machines/machinegossamer.cpp b/machines/machinegossamer.cpp index 5dab78d..01f854b 100644 --- a/machines/machinegossamer.cpp +++ b/machines/machinegossamer.cpp @@ -94,6 +94,8 @@ static void setup_ram_slot(std::string name, int i2c_addr, int capacity_megs) { int initialize_gossamer(std::string& id) { + LOG_F(INFO, "Building machine gossamer"); + // get pointer to the memory controller/PCI host bridge object MPC106* grackle_obj = dynamic_cast(gMachineObj->get_comp_by_name("Grackle")); diff --git a/machines/machinepdm.cpp b/machines/machinepdm.cpp index 3681e57..ea2d9e6 100644 --- a/machines/machinepdm.cpp +++ b/machines/machinepdm.cpp @@ -38,6 +38,8 @@ along with this program. If not, see . int initialize_pdm(std::string& id) { + LOG_F(INFO, "Building machine pdm"); + uint16_t machine_id; // get raw pointer to HMC object diff --git a/machines/machinetnt.cpp b/machines/machinetnt.cpp index 4e1df7e..2fda717 100644 --- a/machines/machinetnt.cpp +++ b/machines/machinetnt.cpp @@ -36,6 +36,8 @@ along with this program. If not, see . int initialize_tnt(std::string& id) { + LOG_F(INFO, "Building machine tnt"); + HammerheadCtrl* memctrl_obj; PCIHost *pci_host = dynamic_cast(gMachineObj->get_comp_by_name("Bandit1"));