| ▲ | pm215 6 hours ago | ||||||||||||||||
Some of the 386 bugs described there sound to me like the classic kind of "multiple different subsystems interact in the wrong way" issue that can slip through the testing process and get into hardware, like this one: > For example, there was one bug that manifested itself in incorrect instruction decoding if a conditional branch instruction had just the right sequence of taken/not-taken history, and the branch instruction was followed immediately by a selector load, and one of the first two instructions at the destination of the branch was itself a jump, call, or return. Even if you write up a comprehensive test plan for the branch predictor, and for selector loads, and so on, it might easily not include that particular corner case. And pre silicon testing is expensive and slow, which also limits how much of it you can do. | |||||||||||||||||
| ▲ | adrian_b 3 hours ago | parent | next [-] | ||||||||||||||||
80386 (1985) did not have a branch predictor, which was used first only in Intel Pentium (1993). Nevertheless, the states of the internal pipelines, which were supposed to be stopped, flushed and restarted cleanly by taken branches, depended on whether the previous branches had been taken or not taken. | |||||||||||||||||
| |||||||||||||||||
| ▲ | Taniwha 6 hours ago | parent | prev [-] | ||||||||||||||||
This sort of bug, especially in and around pipelines are always hard to find. In chips I've built we've had one guy who built a system that would build random instruction streams to try and trigger as many as we possibly could | |||||||||||||||||
| |||||||||||||||||