Some targets (like cygwin) will export page size defines that clash
with our local usage here. Undefine the system one to fix building
for these targets.
#endif
+#undef PAGESIZE /* Cleanup system headers. */
#define NUMPAGES 64 * 1024
#define PAGESIZE 64 * 1024
#define PAGEBITS 16
#ifndef DV_BFIN_MMU_H
#define DV_BFIN_MMU_H
+#undef PAGE_SIZE /* Cleanup system headers. */
+
void mmu_check_addr (SIM_CPU *, bu32 addr, bool write, bool inst, int size);
void mmu_check_cache_addr (SIM_CPU *, bu32 addr, bool write, bool inst);
void mmu_process_fault (SIM_CPU *, bu32 addr, bool write, bool inst, bool unaligned, bool miss);
void mem_usage_stats (void);
unsigned long mem_usage_cycles (void);
+#undef PAGE_SIZE /* Cleanup system headers. */
+
/* rx_mem_ptr returns a pointer which is valid as long as the address
requested remains within the same page. */
#define PAGE_BITS 12