2022-11-15 07:19:04 +01:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-11-28 21:03:52 +01:00
|
|
|
#include <cstddef>
|
2022-11-15 07:19:04 +01:00
|
|
|
|
|
|
|
namespace Common {
|
|
|
|
|
|
|
|
// Data cache instructions enabled at EL0 by SCTLR_EL1.UCI.
|
|
|
|
// VA = virtual address
|
|
|
|
// PoC = point of coherency
|
|
|
|
// PoU = point of unification
|
|
|
|
|
|
|
|
// dc cvau
|
|
|
|
void DataCacheLineCleanByVAToPoU(void* start, size_t size);
|
|
|
|
|
|
|
|
// dc civac
|
|
|
|
void DataCacheLineCleanAndInvalidateByVAToPoC(void* start, size_t size);
|
|
|
|
|
|
|
|
// dc cvac
|
|
|
|
void DataCacheLineCleanByVAToPoC(void* start, size_t size);
|
|
|
|
|
|
|
|
// dc zva
|
|
|
|
void DataCacheZeroByVA(void* start, size_t size);
|
|
|
|
|
|
|
|
} // namespace Common
|