diff options
author | 2008-06-16 03:12:49 +0000 | |
---|---|---|
committer | 2008-06-16 03:12:49 +0000 | |
commit | 5deab27d6d41791498aac45246d3b7cc5ea6281f (patch) | |
tree | 56c1910008a5e3df2cc6ea0034b409044765d041 /src/emu/cpu/powerpc/ppccom.h | |
parent | cd0703d80ab10309a691929f66efd792b5fff6ca (diff) |
Created common virtual TLB managment module.
Updated MIPS and PowerPC code to make use of it.
Diffstat (limited to 'src/emu/cpu/powerpc/ppccom.h')
-rw-r--r-- | src/emu/cpu/powerpc/ppccom.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/emu/cpu/powerpc/ppccom.h b/src/emu/cpu/powerpc/ppccom.h index ff61e82c8e1..e825728a93c 100644 --- a/src/emu/cpu/powerpc/ppccom.h +++ b/src/emu/cpu/powerpc/ppccom.h @@ -11,6 +11,7 @@ #include "cpuintrf.h" #include "ppc.h" +#include "cpu/vtlb.h" /*************************************************************************** @@ -39,11 +40,6 @@ #define PPCCAP_603_MMU 0x20 /* TRUE if we have 603-class MMU features */ -/* bits in our internal TLB */ -#define TLB_READ 0x01 /* reads are allowed */ -#define TLB_WRITE 0x02 /* writes are allowed */ - - /* PowerPC flavors */ enum _powerpc_flavor { @@ -531,9 +527,7 @@ struct _powerpc_state UINT32 param1; /* MMU */ - UINT32 * tlb_table; - UINT32 * tlb_entries; - UINT32 tlb_index; + vtlb_state * vtlb; /* architectural distinctions */ powerpc_flavor flavor; @@ -574,7 +568,9 @@ struct _powerpc_state FUNCTION PROTOTYPES ***************************************************************************/ -size_t ppccom_init(powerpc_state *ppc, powerpc_flavor flavor, UINT8 cap, int tb_divisor, int clock, const powerpc_config *config, int (*irqcallback)(int), void *memory); +void ppccom_init(powerpc_state *ppc, powerpc_flavor flavor, UINT8 cap, int tb_divisor, int clock, const powerpc_config *config, int (*irqcallback)(int)); +void ppccom_exit(powerpc_state *ppc); + void ppccom_reset(powerpc_state *ppc); #ifdef ENABLE_DEBUGGER offs_t ppccom_dasm(powerpc_state *ppc, char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |