From 75de9b9ffe639f623885d96359df3520bbee9ba5 Mon Sep 17 00:00:00 2001 From: Folkert van Heusden Date: Wed, 19 Jun 2024 16:26:00 +0200 Subject: [PATCH] console_esp32::panel_update_thread: read_word could cause exceptions in both emulated system and "hv" --- ESP32/console_esp32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ESP32/console_esp32.cpp b/ESP32/console_esp32.cpp index 56127f6..322849e 100644 --- a/ESP32/console_esp32.cpp +++ b/ESP32/console_esp32.cpp @@ -121,7 +121,7 @@ void console_esp32::panel_update_thread() if (panel_mode == PM_BITS) { uint32_t full_addr = b->getMMU()->calculate_physical_address(c, run_mode, current_PC, false, false, i_space); - uint16_t current_instr = b->read_word(current_PC); + uint16_t current_instr = b->peek_word(current_PC); for(uint8_t b=0; b<22; b++) pixels.setPixelColor(b, full_addr & (1 << b) ? led_color : 0);