4 ms·
I think you probably read it in Dr Dobbs: http://www.drdobbs.com/embedded-systems/processor-detection-schemes/184409011 http://www.drdobbs.com/embedded-systems/
by tyingq 8y ago
I think you probably read it in Dr Dobbs: http://www.drdobbs.com/embedded-systems/processor-detection-schemes/184409011 http://www.drdobbs.com/embedded-systems/processor-detection-...
Not exactly what you described, but very similar:
"Differentiating between 8088s and 8086s is trickier. The easiest way I've found to do it is to modify code that's five bytes ahead of IP. Since the prefetch queue of an 8088 is four bytes and the prefetch queue of an 8086 is six bytes, an instruction five bytes ahead of IP won't have any effect on an 8086 the first time around"
- rootbear 8y agoAh, thanks, you're probably right about where I got it from.
- vbezhenar 8y agoInteresting! Does this effect work on modern CPU? I'd imagine that if CPU modifies memory which was consumed by prefetcher, it should reset and reread everything or something like this.
- tyingq 8y agoI don't think modern prefetch is linear/fifo.