diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2022-11-20 16:31:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-20 16:31:20 +0100 |
commit | db7bcd51ae09c4ef25e08096de563903f61e2380 (patch) | |
tree | 5ae9977b48e1aff118fae3ebffb215b0b4afa887 /src/common/cache_management.h | |
parent | service: nfc: Implement nfc user (diff) | |
parent | Merge pull request #9238 from german77/cabinet_applet (diff) | |
download | yuzu-db7bcd51ae09c4ef25e08096de563903f61e2380.tar yuzu-db7bcd51ae09c4ef25e08096de563903f61e2380.tar.gz yuzu-db7bcd51ae09c4ef25e08096de563903f61e2380.tar.bz2 yuzu-db7bcd51ae09c4ef25e08096de563903f61e2380.tar.lz yuzu-db7bcd51ae09c4ef25e08096de563903f61e2380.tar.xz yuzu-db7bcd51ae09c4ef25e08096de563903f61e2380.tar.zst yuzu-db7bcd51ae09c4ef25e08096de563903f61e2380.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/cache_management.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/common/cache_management.h b/src/common/cache_management.h new file mode 100644 index 000000000..e467b87e4 --- /dev/null +++ b/src/common/cache_management.h @@ -0,0 +1,27 @@ +// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "stdlib.h" + +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 |