NetBSD/sys/arch/next68k
is df61f0409e From the 68040 User Manual, page 4-10:
"To fully support self-modifying code in any situation, it is imperative that
a CPUSHA intrcution is executed before the execution of the first self-modified
instruction. The CPUSHA instruction has the effect of ensuring that there is
no stale data iin memory, the pipeline is flushed, and instruction prefetches
are repeated and taken from external memory."

I verified that this is the only way (I can think of) to make the sigtramp
regression test work on 68040. doing cpushl dc; cinvl ic; over the affected
address range, then nop (to synchronize the pipeline) is not enough; apparently
the nop does not FLUSH the pipeline and prefetch...

Note that the 68060 UM has copied the above cited passage, but in fact this is
not true. This might be connected to the fact that the 68060 does ensure
memory access order under most conditions.
1999-11-25 20:30:38 +00:00
..
compile
conf bring in content of GENERIC.v6 into GENERIC. 1999-11-21 14:00:37 +00:00
dev Update for pmap_enter() API change. No functional difference. 1999-11-13 00:30:26 +00:00
include Rip protection against multiple inclusion from wrapper headers. 1999-11-09 21:34:03 +00:00
next68k From the 68040 User Manual, page 4-10: 1999-11-25 20:30:38 +00:00
stand
Makefile