A computer components & hardware forum. HardwareBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » HardwareBanter forum » Processors » Intel
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Instruction cache bug in Pentium III?



 
 
Thread Tools Display Modes
  #1  
Old September 27th 03, 11:30 AM
Martin Kochanski
external usenet poster
 
Posts: n/a
Default Instruction cache bug in Pentium III?

I was getting some strange crashes in a program compiled under MSVC on
Windows 98, Pentium III processor. The following instruction turned
out not to be working as advertised:

8D 0C 80 LEA ECX,[EAX+EAX*4]

I could make this happen repeatedly, even single-stepping in the
debugger, and after trying a lot of input values I eventually deduced
that the instruction that was actually being *executed* was

8D 0C CC LEA ECX,[ESP+ECX*8]

-- in other words, the third byte was different from what the
disassembly display showed. The interesting thing is that the
instruction was at location 004C4ABE, which means that the scrambled
byte was at location 004C4AC0, which is a multiple of 64... which is
why I'm wondering about caches.

For the avoidance of doubt... although CC is INT 3 and is used to
implement debugger breakpoints, the same thing happened even if I put
a breakpoint somewhat later in the code, so the debugger isn't likely
to be responsible *directly*.

What is puzzling is that Visual Studio's disassembly display continued
to show 8D 0C 80 even though the CPU was executing 8D 0C CC.

Has anyone ever seen anything resembling this? Is it likely to be the
CPU, or something in the memory cache??

- Martin Kochanski.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No ROM PCI IRQ routing table found: what does it mean ? claude Homebuilt PC's 28 December 16th 04 08:31 AM
Confused over AMD PR rating Overclocking AMD Processors 2 January 28th 04 01:18 AM
Just to let you know Daniel Yates Overclocking 3 September 12th 03 04:38 PM
Memtestx86 Cache Questions S.Heenan Overclocking AMD Processors 8 August 4th 03 08:19 PM
Pentium II CPU upgrading to Pentium III ??? Hans Huber General 14 July 18th 03 02:11 PM


All times are GMT +1. The time now is 11:26 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 HardwareBanter.
The comments are property of their posters.