2009-09-08 12:08:10 +00:00
|
|
|
/* PCSX2 - PS2 Emulator for PCs
|
2010-05-03 14:08:02 +00:00
|
|
|
* Copyright (C) 2002-2010 PCSX2 Dev Team
|
2010-04-25 00:31:27 +00:00
|
|
|
*
|
2009-09-08 12:08:10 +00:00
|
|
|
* PCSX2 is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU Lesser General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
2009-02-09 21:15:56 +00:00
|
|
|
*
|
2009-09-08 12:08:10 +00:00
|
|
|
* PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
2009-02-09 21:15:56 +00:00
|
|
|
*
|
2009-09-08 12:08:10 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along with PCSX2.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
2009-02-09 21:15:56 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CACHE_H__
|
|
|
|
#define __CACHE_H__
|
|
|
|
|
|
|
|
#include "Common.h"
|
2021-09-20 06:10:59 +00:00
|
|
|
#include "SingleRegisterTypes.h"
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2020-10-17 09:31:26 +00:00
|
|
|
void resetCache();
|
2009-02-09 21:15:56 +00:00
|
|
|
void writeCache8(u32 mem, u8 value);
|
|
|
|
void writeCache16(u32 mem, u16 value);
|
|
|
|
void writeCache32(u32 mem, u32 value);
|
2011-02-17 21:27:24 +00:00
|
|
|
void writeCache64(u32 mem, const u64 value);
|
|
|
|
void writeCache128(u32 mem, const mem128_t* value);
|
|
|
|
u8 readCache8(u32 mem);
|
|
|
|
u16 readCache16(u32 mem);
|
|
|
|
u32 readCache32(u32 mem);
|
2021-09-20 06:10:59 +00:00
|
|
|
RETURNS_R64 readCache64(u32 mem);
|
|
|
|
RETURNS_R128 readCache128(u32 mem);
|
2009-07-30 23:50:39 +00:00
|
|
|
|
2009-02-09 21:15:56 +00:00
|
|
|
#endif /* __CACHE_H__ */
|