Skip to content

Commit

Permalink
[SC64][SW] Fixed ROM shadow offset address translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Polprzewodnikowy committed Feb 14, 2023
1 parent 72f6160 commit 46f7b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/controller/src/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 46f7b8b

Please sign in to comment.