Subject: port-mips/11002: arch/mips/locore.h doesn't support VR4300
To: None <gnats-bugs@gnats.netbsd.org>
From: None <shinta@sfc.wide.ad.jp>
List: netbsd-bugs
Date: 09/13/2000 04:56:20
>Number:         11002
>Category:       port-mips
>Synopsis:       arch/mips/locore.h doesn't support VR4300
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-mips-maintainer
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 13 04:57:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Shinta Sugimoto
>Release:        NetBSD 1.4L
>Organization:
Keio University
>Environment:
NetBSD 1.4L

>Description:
Althoug arch/mips/locore.h says that it supports MIPS I and MIPS III,
there is no definition for VR4300(NEC) architecture.  To enable use of
VR4300, just add #ifdef case so that MachFlushDCache be defined
as mips3_FlushDCache.  I am sorry that my code(actually diff result) is old,
but I am sure that the current code(/src/sys/arch/mips/locore.h) also have
same problem. (I checked the code on cvsweb)


>How-To-Repeat:


>Fix:
*** sys/arch/mips/include/locore.h.org  Sat Sep 25 21:36:33 1999
--- sys/arch/mips/include/locore.h      Sat Nov  6 21:03:23 1999
***************
*** 140,145 ****
--- 140,147 ----
  #define MachFlushCache                mips3_FlushCache
  #if   defined(MIPS3_L2CACHE_ABSENT) && defined(MIPS3_4100)
  #define MachFlushDCache         mips3_FlushDCache             /* VR4100 */
+ #elif defined(MIPS3_L2CACHE_ABSENT) && defined(MIPS3_4300)
+ #define MachFlushDCache         mips3_FlushDCache             /* VR4300 */
  #elif defined(MIPS3_L2CACHE_ABSENT) && !defined(MIPS3_L2CACHE_PRESENT)
  #define MachFlushDCache               mips52xx_FlushDCache            /* RM520
0 */
  #elif !defined(MIPS3_L2CACHE_ABSENT) && defined(MIPS3_L2CACHE_PRESENT)

>Release-Note:
>Audit-Trail:
>Unformatted: