Add support for IBM750FX (used in latest iBooks).

This commit is contained in:
matt 2002-06-21 00:01:53 +00:00
parent da483421e8
commit 365f1d6150
1 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu_subr.c,v 1.20 2002/06/19 17:43:30 briggs Exp $ */
/* $NetBSD: cpu_subr.c,v 1.21 2002/06/21 00:01:53 matt Exp $ */
/*-
* Copyright (c) 2001 Matt Thomas.
@ -79,6 +79,7 @@ cpu_probe_cache(void)
switch (vers) {
#define K *1024
case IBM750FX:
case MPC601:
case MPC750:
case MPC7450:
@ -195,6 +196,7 @@ cpu_attach_common(struct device *self, int id)
case MPC603ev:
case MPC604ev:
case MPC750:
case IBM750FX:
case MPC7400:
case MPC7410:
case MPC8240:
@ -340,6 +342,7 @@ static const struct cputab models[] = {
{ MPC604, "604" },
{ MPC604ev, "604ev" },
{ MPC620, "620" },
{ IBM750FX, "750FX" },
{ MPC750, "750" },
{ MPC7400, "7400" },
{ MPC7410, "7410" },
@ -364,8 +367,8 @@ cpu_identify(char *str, size_t len)
maj = min <= 4 ? 1 : 2;
break;
default:
maj = (pvr >> 8) & 0xff;
min = (pvr >> 0) & 0xff;
maj = (pvr >> 8) & 0xf;
min = (pvr >> 0) & 0xf;
}
for (cp = models; cp->name != NULL; cp++) {
@ -436,6 +439,10 @@ cpu_config_l2cr(int vers)
printf("\n");
return;
}
if (vers == IBM750FX) {
printf(": 512KB L2 cache\n");
return;
}
switch (l2cr & L2CR_L2SIZ) {
case L2SIZ_256K:
printf(": 256KB");