Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc Add 403 family processors other than 403GCX.



details:   https://anonhg.NetBSD.org/src/rev/2de78f9dad38
branches:  trunk
changeset: 953304:2de78f9dad38
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Mar 05 07:10:27 2021 +0000

description:
Add 403 family processors other than 403GCX.

diffstat:

 sys/arch/powerpc/ibm4xx/cpu.c         |  40 ++++++++++++++++++++++++++++++----
 sys/arch/powerpc/include/ibm4xx/spr.h |   7 ++++-
 2 files changed, 40 insertions(+), 7 deletions(-)

diffs (82 lines):

diff -r 69e9fb2351e8 -r 2de78f9dad38 sys/arch/powerpc/ibm4xx/cpu.c
--- a/sys/arch/powerpc/ibm4xx/cpu.c     Fri Mar 05 07:06:15 2021 +0000
+++ b/sys/arch/powerpc/ibm4xx/cpu.c     Fri Mar 05 07:10:27 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.34 2020/03/05 01:21:09 rin Exp $     */
+/*     $NetBSD: cpu.c,v 1.35 2021/03/05 07:10:27 rin Exp $     */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.34 2020/03/05 01:21:09 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.35 2021/03/05 07:10:27 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -130,9 +130,39 @@
                        .icache_line_size = 16,
                }
        }, {
-               .version = PVR_403, 
-               .mask = 0xffff0000,
-               .name = "403",
+               .version = PVR_403GA,   /* XXX no MMU */
+               .mask = 0xffffff00,
+               .name = "403GA",
+               .ci = {
+                       .dcache_size = 1024,
+                       .dcache_line_size = 16,
+                       .icache_size = 2048,
+                       .icache_line_size = 16,
+               }
+       }, {
+               .version = PVR_403GB,   /* XXX no MMU */
+               .mask = 0xffffff00,
+               .name = "403GB",
+               .ci = {
+                       .dcache_size = 1024,
+                       .dcache_line_size = 16,
+                       .icache_size = 2048,
+                       .icache_line_size = 16,
+               }
+       }, {
+               .version = PVR_403GC,
+               .mask = 0xffffff00,
+               .name = "403GC",
+               .ci = {
+                       .dcache_size = 1024,
+                       .dcache_line_size = 16,
+                       .icache_size = 2048,
+                       .icache_line_size = 16,
+               }
+       }, {
+               .version = PVR_403GCX,
+               .mask = 0xffffff00,
+               .name = "403GCX",
                .ci = {
                        .dcache_size = 8192,
                        .dcache_line_size = 16,
diff -r 69e9fb2351e8 -r 2de78f9dad38 sys/arch/powerpc/include/ibm4xx/spr.h
--- a/sys/arch/powerpc/include/ibm4xx/spr.h     Fri Mar 05 07:06:15 2021 +0000
+++ b/sys/arch/powerpc/include/ibm4xx/spr.h     Fri Mar 05 07:10:27 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spr.h,v 1.3 2011/06/18 17:06:52 matt Exp $     */
+/*     $NetBSD: spr.h,v 1.4 2021/03/05 07:10:27 rin Exp $      */
 
 #ifndef _POWERPC_IBM4XX_SPR_H_
 #define        _POWERPC_IBM4XX_SPR_H_
@@ -43,7 +43,10 @@
 #define        PVR_401F2               0x00260000
 #define        PVR_401G2               0x00270000
 
-#define        PVR_403                 0x00200000
+#define        PVR_403GA               0x00200000      /* XXX no MMU */
+#define        PVR_403GB               0x00200100      /* XXX no MMU */
+#define        PVR_403GC               0x00200200
+#define        PVR_403GCX              0x00201400
 
 #define PVR_405GP              0x40110000
 #define PVR_405GP_PASS1        0x40110000      /* RevA */



Home | Main Index | Thread Index | Old Index