From 46f7b8b7945fbd602836ef358d3061ff3e48b253 Mon Sep 17 00:00:00 2001 From: Mateusz Faderewski Date: Tue, 14 Feb 2023 20:44:43 +0100 Subject: [PATCH] [SC64][SW] Fixed ROM shadow offset address translation --- sw/controller/src/cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/controller/src/cfg.c b/sw/controller/src/cfg.c index 649a1f1..e26cd1e 100644 --- a/sw/controller/src/cfg.c +++ b/sw/controller/src/cfg.c @@ -136,7 +136,7 @@ static bool cfg_translate_address (uint32_t *address, uint32_t length, translate } if (*address >= 0x1FFC0000 && *address < 0x1FFE0000) { if ((*address + length) <= 0x1FFE0000) { - *address = *address - 0x1FFC0000 + 0x04E00000; + *address = *address - 0x1FFC0000 + 0x04FE0000; return false; } }