TLB macro

This commit is contained in:
Stanislav Shwartsman 2007-12-21 11:11:50 +00:00
parent a93b0afdbe
commit 43e356fb60

View File

@ -131,7 +131,7 @@
#define BX_TLB_SIZE 1024
#define BX_TLB_MASK ((BX_TLB_SIZE-1) << 12)
#define BX_TLB_INDEX_OF(lpf) ((((unsigned)(lpf)) & BX_TLB_MASK) >> 12)
#define BX_TLB_INDEX_OF(lpf, len) ((((unsigned)(lpf) + (len)) & BX_TLB_MASK) >> 12)
// Compile in support for DMA & FLOPPY IO. You'll need this
// if you plan to use the floppy drive emulation. But if