Skip to content

Commit

Permalink
Fixed a bug in the cpu/kernel logging code
Browse files Browse the repository at this point in the history
  • Loading branch information
ergo720 committed Mar 19, 2024
1 parent e4960c1 commit 7bbe8ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hw/cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cpu_logger(log_level lv, const unsigned count, const char *msg, ...)
bool
cpu::update_io(bool is_update)
{
bool enable = module_enabled();
bool enable = check_if_enabled<log_module::kernel>();
if (!LC86_SUCCESS(mem_init_region_io(m_lc86cpu, kernel::IO_BASE, kernel::IO_SIZE, true,
{
.fnr32 = enable ? kernel::read_handler_logger : kernel::read_handler,
Expand Down

0 comments on commit 7bbe8ef

Please sign in to comment.