X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Fmupen64plus-core%2Fsrc%2Fmemory%2Ftlb.h;fp=source%2Fmupen64plus-core%2Fsrc%2Fmemory%2Ftlb.h;h=23fc816410b70e1e3f875730d38b00f788e703df;hb=451ab91e3827a6384981b3300e2a7000d2eaba58;hp=0000000000000000000000000000000000000000;hpb=a2ab25365b5b0dddbee476d695d8a31151407581;p=mupen64plus-pandora.git diff --git a/source/mupen64plus-core/src/memory/tlb.h b/source/mupen64plus-core/src/memory/tlb.h new file mode 100644 index 0000000..23fc816 --- /dev/null +++ b/source/mupen64plus-core/src/memory/tlb.h @@ -0,0 +1,57 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Mupen64plus - tlb.h * + * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * + * Copyright (C) 2002 Hacktarux * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program 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. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +#ifndef TLB_H +#define TLB_H + +typedef struct _tlb +{ + short mask; + int vpn2; + char g; + unsigned char asid; + int pfn_even; + char c_even; + char d_even; + char v_even; + int pfn_odd; + char c_odd; + char d_odd; + char v_odd; + char r; + //int check_parity_mask; + + unsigned int start_even; + unsigned int end_even; + unsigned int phys_even; + unsigned int start_odd; + unsigned int end_odd; + unsigned int phys_odd; +} tlb; + +extern unsigned int tlb_LUT_r[0x100000]; +extern unsigned int tlb_LUT_w[0x100000]; +void tlb_unmap(tlb *entry); +void tlb_map(tlb *entry); +unsigned int virtual_to_physical_address(unsigned int addresse, int w); + +#endif +