Linux MIPS Architecture development
 help / color / mirror / Atom feed
* MIPS32 patches breaking DecStation
@ 2001-01-08 23:41 Florian Lohoff
  2001-01-08 23:41 ` Florian Lohoff
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Florian Lohoff @ 2001-01-08 23:41 UTC (permalink / raw)
  To: linux-mips


Hi,
i found this snippet from arch/mips/kernel/head.S breaking DecStations:

@@ -68,9 +76,9 @@
        mtc0    k0, CP0_ENTRYLO0                # load it
        srl     k1, k1, 6                       # convert to entrylo1
        mtc0    k1, CP0_ENTRYLO1                # load it
-       b       1f
-        tlbwr                                  # write random tlb entry
-1:     
+       nop                                     # Need 2 cycles between mtc0
+       nop                                     #  and tlbwr (CP0 hazard).
+       tlbwr                                   # write random tlb entry
        nop
        eret                                    # return from trap
        END(except_vec0_r4000)


>From the Documentation and how i understand it this is perfectly
valid as the mtc0 instruction causes a cp0 hazard within the next 2 instruction
thought the delay of 2 cycles would be ok.

This is probably related to the Decstations having REALLY old R4000 silicion
revisions - Probably one should look through the erratas for these

flo@repeat:~$ cat /proc/cpuinfo 
cpu			: MIPS
cpu model		: R4000SC V3.0
system type		: Digital DECstation 5000/1xx

OK - I just had a look at the errata - This IS a workaround to a 
Mips R4000SC 2.0, 3.0 errata - I restored the original code back.

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2001-01-09 20:33 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-08 23:41 MIPS32 patches breaking DecStation Florian Lohoff
2001-01-08 23:41 ` Florian Lohoff
2001-01-09  0:34 ` Kevin D. Kissell
2001-01-09  0:34   ` Kevin D. Kissell
2001-01-09  8:54   ` Florian Lohoff
2001-01-09 17:11     ` Harald Koerfgen
2001-01-09 18:28       ` Ralf Baechle
2001-01-09 19:30         ` Kevin D. Kissell
2001-01-09 19:30           ` Kevin D. Kissell
2001-01-09 19:54           ` Ralf Baechle
2001-01-09 19:54             ` Ralf Baechle
2001-01-09 20:33             ` Kevin D. Kissell
2001-01-09 20:33               ` Kevin D. Kissell
2001-01-09 15:09   ` Ralf Baechle
2001-01-09 15:09     ` Ralf Baechle
2001-01-09 15:50     ` Kevin D. Kissell
2001-01-09 15:50       ` Kevin D. Kissell
2001-01-09 16:43 ` Harald Koerfgen
2001-01-09 17:01   ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox