|
|
| version 1.22, 2008/03/22 04:03:07 | version 1.25, 2011/12/16 09:05:42 |
|---|---|
| Line 1 | Line 1 |
| /* $Id$ */ | |
| /* | /* |
| * Copyright (c) 2003 NONAKA Kimihiro | * Copyright (c) 2003 NONAKA Kimihiro |
| * All rights reserved. | * All rights reserved. |
| Line 215 typedef struct { | Line 213 typedef struct { |
| UINT8 *memp; /* shortcut for pre-fetch queue */ | UINT8 *memp; /* shortcut for pre-fetch queue */ |
| } TLB_ENTRY_T; | } TLB_ENTRY_T; |
| #if defined(IA32_SUPPORT_TLB) | |
| void tlb_init(void); | void tlb_init(void); |
| void MEMCALL tlb_flush(BOOL allflush); | void MEMCALL tlb_flush(BOOL allflush); |
| void MEMCALL tlb_flush_page(UINT32 laddr); | void MEMCALL tlb_flush_page(UINT32 laddr); |
| TLB_ENTRY_T* MEMCALL tlb_lookup(const UINT32 laddr, const int ucrw); | TLB_ENTRY_T* MEMCALL tlb_lookup(const UINT32 laddr, const int ucrw); |
| #else | |
| #define tlb_init() | |
| #define tlb_flush(allflush) (void)(allflush) | |
| #define tlb_flush_page(la) (void)(la) | |
| #define tlb_lookup(la, ucrw) NULL | |
| #endif | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| } | } |