From 43e356fb6049fa4377526c8566ca2d628aae1de3 Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Fri, 21 Dec 2007 11:11:50 +0000 Subject: [PATCH] TLB macro --- bochs/config.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bochs/config.h.in b/bochs/config.h.in index d4c34e06d..5444be6ad 100644 --- a/bochs/config.h.in +++ b/bochs/config.h.in @@ -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