Subject: Re: Kaffe 0.84/JIT on netbsd-m68k (long)
To: None <hauke@Espresso.Rhein-Neckar.DE>
From: Gordon W. Ross <gwr@mc.com>
List: port-m68k
Date: 02/07/1998 14:34:29
> Date: Sat, 7 Feb 1998 14:12:00 +0100
> From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
> At 4:12 Uhr +0100 05.02.1998, Gordon W. Ross wrote:
>
> >BTW, we no longer use "trap #2" for kernel breakpoints, so we
> >could now easily let it mean "flush the I-cache". Good idea?
>
> ...but the 1.3B arch/mac68k/mac68k/trap.c has
>
> /* $NetBSD: trap.c,v 1.55 1997/11/07 07:33:15 scottr Exp $ */
>
> [...]
>
> /*
> * Trace traps.
> *
> * M68k NetBSD uses trap #2,
That comment is no longer correct. NetBSD now uses trap #15 for
breakpoints (or "trace" traps).
> * SUN 3.x uses trap #15,
(and now NetBSD does also.)
> #ifdef COMPAT_SUNOS
> /*
> * SunOS uses Trap #2 for a "CPU cache flush"
> * Just flush the on-chip caches and return.
> * XXX - Too bad NetBSD uses trap 2...
> */
>
>
> >Again, gcc could just do "trap #2" on both SunOS and NetBSD...
> >
> >Gordon
>
> - ???
Now the only cause of trap #2 should be SunOS I-cache flush.