From 231056fff4ffeb96291bf434a9099947bf056d86 Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Sat, 29 Mar 2008 21:51:42 +0000 Subject: [PATCH] small cleanups --- bochs/cpu/cpu.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bochs/cpu/cpu.cc b/bochs/cpu/cpu.cc index 201a428f5..434cd4115 100644 --- a/bochs/cpu/cpu.cc +++ b/bochs/cpu/cpu.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: cpu.cc,v 1.213 2008-03-29 21:01:23 sshwarts Exp $ +// $Id: cpu.cc,v 1.214 2008-03-29 21:51:42 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. @@ -151,14 +151,13 @@ no_async_event: #if BX_SUPPORT_ICACHE bx_phy_address pAddr = BX_CPU_THIS_PTR pAddrA20Page + eipBiased; bxICacheEntry_c *entry = BX_CPU_THIS_PTR iCache.get_entry(pAddr); - Bit32u currPageWriteStamp = *(BX_CPU_THIS_PTR currPageWriteStampPtr); bxInstruction_c *i = entry->i; InstrICache_Increment(iCacheLookups); InstrICache_Stats(); if ((entry->pAddr == pAddr) && - (entry->writeStamp == currPageWriteStamp)) + (entry->writeStamp == *(BX_CPU_THIS_PTR currPageWriteStampPtr))) { // iCache hit. An instruction was found in the iCache. #if BX_INSTRUMENTATION @@ -172,7 +171,7 @@ no_async_event: InstrICache_Increment(iCacheMisses); serveICacheMiss(entry, eipBiased, pAddr); } -#else // BX_SUPPORT_ICACHE = 0 +#else bxInstruction_c iStorage, *i = &iStorage; unsigned remainingInPage = BX_CPU_THIS_PTR eipPageWindowSize - eipBiased; const Bit8u *fetchPtr = BX_CPU_THIS_PTR eipFetchPtr + eipBiased;