From 478ca1065fa6c273cf0616702baf08c3e8a08277 Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Wed, 3 Feb 2021 23:29:48 +0100 Subject: [PATCH] MPC106: fix RAM size calculation. --- devices/mpc106.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devices/mpc106.cpp b/devices/mpc106.cpp index f5ba73b..79a684a 100644 --- a/devices/mpc106.cpp +++ b/devices/mpc106.cpp @@ -271,8 +271,8 @@ void MPC106::setup_ram() { bank_end = (((ext_mem_end >> bank * 8) & 3) << 30) | (((mem_end >> bank * 8) & 0xFF) << 20) | 0xFFFFFUL; if (bank && bank_start != ram_size) - LOG_F(ERROR, "MPC106 error: RAM not contiguous! \n"); - ram_size += bank_end + 1; + LOG_F(WARNING, "MPC106: RAM not contiguous! \n"); + ram_size += bank_end - bank_start + 1; } }