From 655ee1d84beef836281b70d18a4afb5e48455861 Mon Sep 17 00:00:00 2001 From: George Wright Date: Sat, 7 Dec 2024 13:15:46 -0800 Subject: [PATCH] Disable a bunch of logging for now --- WindCore/sa1100.cpp | 8 ++++---- WindCore/sa1100/interrupt_controller.cpp | 2 ++ WindCore/sa1100/lcd_controller.cpp | 2 +- WindCore/sa1100/lcd_controller.h | 1 + 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/WindCore/sa1100.cpp b/WindCore/sa1100.cpp index 3efd6ee..1f7d235 100644 --- a/WindCore/sa1100.cpp +++ b/WindCore/sa1100.cpp @@ -71,7 +71,7 @@ uint32_t Emulator::readPCM32(uint32_t physAddr) { switch (region) { case 0x8005: // Serial 3 - printf("Getting serial 3 at 0x%08x\n", physAddr); + //printf("Getting serial 3 at 0x%08x\n", physAddr); return serial3->get_data(physAddr); default: printf("Read PCM32 at 0x%08x\n", physAddr); @@ -85,7 +85,7 @@ bool Emulator::writePCM32(uint32_t value, uint32_t physAddr) { switch (region) { case 0x8005: // Serial 3 - printf("Serial 3 write 0x%08x at 0x%08x\n", value, physAddr); + //printf("Serial 3 write 0x%08x at 0x%08x\n", value, physAddr); serial3->put_data(physAddr, value); return true; default: @@ -187,7 +187,7 @@ uint8_t Emulator::readPhysical8(uint32_t physAddr) { switch (region) { case 0x00: - printf("Read8 ROM %02x from %08x\n", ROM[physAddr & 0xFFFFFF], physAddr); + //printf("Read8 ROM %02x from %08x\n", ROM[physAddr & 0xFFFFFF], physAddr); return ROM[physAddr & 0xFFFFFF]; case 0x10: // Should not reach here @@ -364,7 +364,7 @@ uint32_t Emulator::readPhysical32(uint32_t physAddr) { switch (region) { case 0x00: LOAD_32LE(result, physAddr & 0xFFFFFF, ROM); - printf("Reading %08x from %08x\n", result, physAddr); + //printf("Reading %08x from %08x\n", result, physAddr); break; case 0x10: // Should not reach here diff --git a/WindCore/sa1100/interrupt_controller.cpp b/WindCore/sa1100/interrupt_controller.cpp index 7f0b6d0..c375be4 100644 --- a/WindCore/sa1100/interrupt_controller.cpp +++ b/WindCore/sa1100/interrupt_controller.cpp @@ -316,6 +316,7 @@ namespace SA1100 { if (0 == lcd_status) { + //printf("LCD: clearing LCD service bit\n"); m_ICPR &= ~LCD_SERVICE_BIT_MASK; } else @@ -405,6 +406,7 @@ namespace SA1100 { m_ICIP = temp & (~m_ICLR); m_ICFP = temp & m_ICLR; + //printf("Have interrupt ICIP:%08x ICFP:%08x ICMR:%08x\n", m_ICIP, m_ICFP, m_ICMR); // if (true == mp_core->is_in_idle_mode()) // { diff --git a/WindCore/sa1100/lcd_controller.cpp b/WindCore/sa1100/lcd_controller.cpp index 3981889..7ff2849 100644 --- a/WindCore/sa1100/lcd_controller.cpp +++ b/WindCore/sa1100/lcd_controller.cpp @@ -35,7 +35,7 @@ void LCDController::reset() { } uint32_t LCDController::get_data32(uint32_t const address) const { - std::cout << "LCD: get value at " << std::hex << address << std::endl; + //std::cout << "LCD: get value at " << std::hex << address << std::endl; switch (address) { case LCCR0: return m_LCCR0; diff --git a/WindCore/sa1100/lcd_controller.h b/WindCore/sa1100/lcd_controller.h index e8f0c0f..0ae04c7 100644 --- a/WindCore/sa1100/lcd_controller.h +++ b/WindCore/sa1100/lcd_controller.h @@ -173,6 +173,7 @@ public: // that is set after the contents of the DMA base address register 1 // are transferred to the DMA current Address register 1 m_LCSR |= LCSR_BAU; + //printf("LCD: finish one frame\n"); } inline uint32_t get_interrupt_status() const { -- 2.45.2