MdePkg/BaseCacheMaintenanceLib: RISC-V: Fix InvalidateInstructionCacheRange

When the range instruction cache invalidating not supported, the whole
instruction cache should be invalidated instead.

Signed-off-by: Tuan Phan <tphan@ventanamicro.com>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
This commit is contained in:
Tuan Phan 2023-03-10 13:50:19 -08:00 committed by mergify[bot]
parent 7cfe9048e3
commit 997c6967b0
1 changed files with 6 additions and 1 deletions

View File

@ -76,7 +76,12 @@ InvalidateInstructionCacheRange (
IN UINTN Length
)
{
DEBUG ((DEBUG_ERROR, "%a:RISC-V unsupported function.\n", __FUNCTION__));
DEBUG (
(DEBUG_WARN,
"%a:RISC-V unsupported function.\n"
"Invalidating the whole instruction cache instead.\n", __func__)
);
InvalidateInstructionCache ();
return Address;
}