aboutsummaryrefslogtreecommitdiff
path: root/src/common/cache_management.h
blob: e467b87e4ccc29c9cdefd21127444888b50ce7ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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