Hardware Bugs & Warnings yw w ‘The following sections describe known bugs in the operation of the Jaguar hardware. Side-effects of these bugs should not be relied on, as they may GPU/DSP Bugs & Warnings 1) The scoreboard mechanism does not work on the data of any indexed store instruction. This means that any indexed store instruction that stores data from a long latency operation (such as a di- vide or external load) should place an ‘or’ instruc- tion prior to the store. For example: div store r0,r3 3, (r14+6) should be written as: div r0,r3 or 3,3 store _¥3,(rl4+6) 2) In any instruction where the destination register is written to without being read, the destination register will not be protected by the scoreboarding mechanism of the GPU/DSP. This includes MTOI, NORMI, RESMAC, all MOVE variations, and all LOAD variations. If one of these ‘destination write-only’ instructions writes to the same destination register as a prior instruction and there have been no intervening reads from that register, it is possible for the second instruction to complete before (or simultaneously with) the first, causing the register to become corrupt. This bug only becomes a problem when doing ‘dummy instructions as shown in the following example: div r2,r4. ; Divide starts j(takes 18 ticks) moveg #4,r4 ; Move completes before divide be fixed in future versions of the hardware. Although this code doesn't make much sense, it might appear at the end of a loop as shown below: loop: ir EQ, loop div x2,r4 Any number of instructions could appear here. Unless one of them reads i R4, the result of the MOvEQ will be moveq #4,r4 In this case, when the loop condition fails, the DIV/MOVEQ instruction sequence will occur and register R4 will be corrupted. This can be prevented by causing the destination register to be read prior to the move as is shown in the following example: loop: ix EQ, loop div r2,r4 or r4,r4 moveq #4,r4 Please note that these examples illustrate one par- ticular sequence (DIV/MOVEQ). Any instruction which writes to a register followed later in the instruction stream by a ‘destination write-only’ instruction with no intervening reads of that register is unreliable. In practice, this creates two cases. Ifa DIV or LOAD instruction is used to write to a register, a read of that register must be inserted prior to any © 1994 Atari Corp. Confidential Information “AOR Property of Atari Corporation 26 April, 1995