2026-01-12 05:18:12 -05:00
|
|
|
// SPDX-FileCopyrightText: 2002-2026 PCSX2 Dev Team
|
2024-07-30 13:42:36 +02:00
|
|
|
// SPDX-License-Identifier: GPL-3.0+
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2022-06-25 13:20:03 -04:00
|
|
|
#pragma once
|
2009-02-09 21:15:56 +00:00
|
|
|
|
|
|
|
|
#include "Common.h"
|
2023-12-22 23:03:25 +10:00
|
|
|
|
|
|
|
|
#include "common/SingleRegisterTypes.h"
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2020-10-17 04:31:26 -05:00
|
|
|
void resetCache();
|
2024-12-08 14:05:03 -05:00
|
|
|
// Dumps all dirty cache entries to memory
|
|
|
|
|
// This is necessary to fix a bug when enabled the recompiler while the cache was enabled.
|
|
|
|
|
void writebackCache();
|
2024-06-24 11:36:28 -04:00
|
|
|
void writeCache8(u32 mem, u8 value, bool validPFN = true);
|
|
|
|
|
void writeCache16(u32 mem, u16 value, bool validPFN = true);
|
|
|
|
|
void writeCache32(u32 mem, u32 value, bool validPFN = true);
|
|
|
|
|
void writeCache64(u32 mem, const u64 value, bool validPFN = true);
|
|
|
|
|
void writeCache128(u32 mem, const mem128_t* value, bool validPFN = true);
|
|
|
|
|
u8 readCache8(u32 mem, bool validPFN = true);
|
|
|
|
|
u16 readCache16(u32 mem, bool validPFN = true);
|
|
|
|
|
u32 readCache32(u32 mem, bool validPFN = true);
|
|
|
|
|
u64 readCache64(u32 mem, bool validPFN = true);
|
|
|
|
|
RETURNS_R128 readCache128(u32 mem, bool validPFN = true);
|