/[pcsx2_0.9.7]/trunk/pcsx2/Cache.h
ViewVC logotype

Annotation of /trunk/pcsx2/Cache.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 401 - (hide annotations) (download)
Fri Feb 25 17:31:09 2011 UTC (8 years, 11 months ago) by william
File MIME type: text/plain
File size: 1326 byte(s)
Auto Commited Import of: pcsx2-0.9.7-DEBUG (upstream: v0.9.7.4358 local: v0.9.7.313-latest) in ./trunk
1 william 31 /* PCSX2 - PS2 Emulator for PCs
2     * Copyright (C) 2002-2010 PCSX2 Dev Team
3     *
4     * PCSX2 is free software: you can redistribute it and/or modify it under the terms
5     * of the GNU Lesser General Public License as published by the Free Software Found-
6     * ation, either version 3 of the License, or (at your option) any later version.
7     *
8     * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9     * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10     * PURPOSE. See the GNU General Public License for more details.
11     *
12     * You should have received a copy of the GNU General Public License along with PCSX2.
13     * If not, see <http://www.gnu.org/licenses/>.
14     */
15    
16     #ifndef __CACHE_H__
17     #define __CACHE_H__
18    
19     #include "Common.h"
20    
21    
22 william 401 union _u8bit_128
23     {
24     u8 _u8[16];
25     u16 _u16[8];
26     u32 _u32[4];
27     u64 _u64[2];
28 william 31 };
29    
30     struct u8bit_128 {
31     _u8bit_128 b8;
32    
33     };
34    
35     struct _cacheS {
36     u32 tag[2];
37     u8bit_128 data[2][4];
38     };
39    
40     extern _cacheS pCache[64];
41    
42     void writeCache8(u32 mem, u8 value);
43     void writeCache16(u32 mem, u16 value);
44     void writeCache32(u32 mem, u32 value);
45 william 401 void writeCache64(u32 mem, const u64 value);
46     void writeCache128(u32 mem, const mem128_t* value);
47     u8 readCache8(u32 mem);
48     u16 readCache16(u32 mem);
49     u32 readCache32(u32 mem);
50     u64 readCache64(u32 mem);
51 william 31
52     #endif /* __CACHE_H__ */

  ViewVC Help
Powered by ViewVC 1.1.22