🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.misc
Article #3597

Re: Difference between a 386 and a 386sx

#3597
From: Mark Lord
Date: Mon, 01 Oct 1990 17:25
27 lines
2176 bytes
In article <4126@altos86.Altos.COM> rcollins@altos86.UUCP (Robert Collins) writes:
>Just a friendly note in case you don't know much about '386's...But the
>SX and DX have the same size prefetch queue.  This can be confirmed by
>simply looking in the SX and DX hardware reference manuals (respectively)
>and verify that both have 16-byte prefetch queues.  So code that checks
>the length of the prefetch queue isn't going to determine anything...
>except the length of the prefetch queue.

Somebody with a manual should probably double-check this assertion.
I do not have a manual any more, but my recollection is that both processors
have 4-deep prefetch queues.. that is, each can prefetch up to 4 machine words.

On a DX, a machine word is 32 bits, whereas on an SX it is 16 bits (for the
BIU, that is).  Thus, a DX has a 16-byte prefetch queue, and an SX has only 8.

The posted code (I missed it) probably failed to properly preload the prefetch
queue.  To do this, one must cleverly code a loop which is 12-bytes in length,
and which executes twice in succession, modifying itself the second 
time around (but not the first time).  This is necessary to overcome problems
with bus bandwidtch, which might otherwise affect this test.

The actual coding of such a beastie is left as an exercise for The Reader.
-- 
 ___Mark S. Lord__________________________________________
| ..uunet!bnrgate!mlord%bmerh724 | Climb Free Or Die (NH) |
| MLORD@BNR.CA   Ottawa, Ontario | Personal views only.   |
|________________________________|________________________|
Technical Details
Message-ID: <4463@bwdls58.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!bwdls58!mlord
References: <1412@svin02.info.win.tue.nl> <4388@bwdls58.UUCP> <1990Sep20.185214.780@sj.ate.slb.com> <1990Sep21.002015.1201@thyme.jpl.nasa.gov> <JSP.90Sep26143232@milton.biostr.washington.edu> <4126@altos86.Altos.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!bwdls58!mlord
From: mlord@bwdls58.bnr.ca (Mark Lord)
Newsgroups: comp.sys.ibm.pc.misc
Subject: Re: Difference between a 386 and a 386sx
Message-ID: <4463@bwdls58.UUCP>
Date: 1 Oct 90 17:25:12 GMT
References: <1412@svin02.info.win.tue.nl> <4388@bwdls58.UUCP> <1990Sep20.185214.780@sj.ate.slb.com> <1990Sep21.002015.1201@thyme.jpl.nasa.gov> <JSP.90Sep26143232@milton.biostr.washington.edu> <4126@altos86.Altos.COM>
Sender: mlord@bwdls58.UUCP
Reply-To: mlord@bwdls58.bnr.ca (Mark Lord)
Organization: Bell-Northern Research, Ottawa, Canada
Lines: 27