Diff for /np2/i386c/ia32/paging.h between versions 1.11 and 1.13

version 1.11, 2004/03/04 16:58:58 version 1.13, 2004/03/23 15:29:34
Line 128  extern "C" { Line 128  extern "C" {
 /*  /*
  * linear address memory access function   * linear address memory access function
  */   */
 UINT32 MEMCALL cpu_linear_memory_read(UINT32 address, UINT length, int code, int user_mode);  void MEMCALL cpu_memory_access_la_region(UINT32 address, UINT length, const int crw, const int user_mode, BYTE *data);
 void MEMCALL cpu_linear_memory_write(UINT32 address, UINT32 value, UINT length, int user_mode);  UINT32 MEMCALL cpu_memory_access_la_RMW(UINT32 laddr, UINT length, const int user_mode, UINT32 (*func)(UINT32, void *), void *arg);
 void MEMCALL paging_check(UINT32 laddr, UINT length, int crw, int user_mode);  UINT32 MEMCALL cpu_linear_memory_read(UINT32 address, UINT length, const int crw, const int user_mode);
   void MEMCALL cpu_linear_memory_write(UINT32 address, UINT32 value, UINT length, const int user_mode);
   void MEMCALL paging_check(UINT32 laddr, UINT length, const int crw, const int user_mode);
   
 /* crw */  /* crw */
 #define CPU_PAGE_READ           (0 << 0)  #define CPU_PAGE_READ           (0 << 0)
Line 146  void MEMCALL paging_check(UINT32 laddr,  Line 148  void MEMCALL paging_check(UINT32 laddr, 
         (!CPU_STAT_PAGING) ? \          (!CPU_STAT_PAGING) ? \
          cpu_memoryread(a) : \           cpu_memoryread(a) : \
          (UINT8)cpu_linear_memory_read(a,1,CPU_PAGE_READ_DATA,pl)           (UINT8)cpu_linear_memory_read(a,1,CPU_PAGE_READ_DATA,pl)
   #define cpu_lmemoryread_b(a,pl) cpu_lmemoryread(a,pl)
 #define cpu_lmemoryread_w(a,pl) \  #define cpu_lmemoryread_w(a,pl) \
         (!CPU_STAT_PAGING) ? \          (!CPU_STAT_PAGING) ? \
          cpu_memoryread_w(a) : \           cpu_memoryread_w(a) : \
Line 159  void MEMCALL paging_check(UINT32 laddr,  Line 162  void MEMCALL paging_check(UINT32 laddr, 
         (!CPU_STAT_PAGING) ? \          (!CPU_STAT_PAGING) ? \
          cpu_memorywrite(a,v) : \           cpu_memorywrite(a,v) : \
          cpu_linear_memory_write(a,v,1,pl)           cpu_linear_memory_write(a,v,1,pl)
   #define cpu_lmemorywrite_b(a,v,pl) cpu_lmemorywrite(a,v,pl)
 #define cpu_lmemorywrite_w(a,v,pl) \  #define cpu_lmemorywrite_w(a,v,pl) \
         (!CPU_STAT_PAGING) ? \          (!CPU_STAT_PAGING) ? \
          cpu_memorywrite_w(a,v) : \           cpu_memorywrite_w(a,v) : \
Line 213  do { \ Line 217  do { \
 #if defined(IA32_SUPPORT_TLB)  #if defined(IA32_SUPPORT_TLB)
 void tlb_init(void);  void tlb_init(void);
 void tlb_flush(BOOL allflush);  void tlb_flush(BOOL allflush);
 void tlb_flush_page(UINT32 vaddr);  void tlb_flush_page(UINT32 laddr);
 #else  #else
 #define tlb_init()  #define tlb_init()
 #define tlb_flush(allflush)     (void)(allflush)  #define tlb_flush(allflush)     (void)(allflush)
 #define tlb_flush_page(vaddr)   (void)(vaddr)  #define tlb_flush_page(laddr)   (void)(laddr)
 #endif  #endif
   
 #ifdef __cplusplus  #ifdef __cplusplus

Removed from v.1.11  
changed lines
  Added in v.1.13


RetroPC.NET-CVS <cvs@retropc.net>