From bf3652563bbd01271a0fe8ea87fa8b072ba18b7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Strohh=C3=A4cker?= Date: Fri, 26 Jun 2009 16:43:30 +0000 Subject: [PATCH] prevent excessive inlining in prefetching core Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3434 --- src/cpu/core_prefetch.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cpu/core_prefetch.cpp b/src/cpu/core_prefetch.cpp index 6a08e6fe..0ea91f0e 100644 --- a/src/cpu/core_prefetch.cpp +++ b/src/cpu/core_prefetch.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: core_prefetch.cpp,v 1.2 2009-05-27 09:15:41 qbix79 Exp $ */ +/* $Id: core_prefetch.cpp,v 1.3 2009-06-26 16:43:30 c2woody Exp $ */ #include @@ -115,7 +115,7 @@ static Bit8u prefetch_buffer[MAX_PQ_SIZE]; static bool pq_valid=false; static Bitu pq_start; -static INLINE Bit8u Fetchb() { +static Bit8u Fetchb() { Bit8u temp; if (pq_valid && (core.cseip>=pq_start) && (core.cseip=pq_start) && (core.cseip+2=pq_start) && (core.cseip+416) len=16; char tempcode[16*2+1];char * writecode=tempcode; for (;len>0;len--) { - sprintf(writecode,"%X",mem_readb(core.cseip++)); + sprintf(writecode,"%02X",mem_readb(core.cseip++)); writecode+=2; } LOG(LOG_CPU,LOG_NORMAL)("Illegal/Unhandled opcode %s",tempcode);