mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
Unbreak E500 builds. The inline assembly for the 970 CPUs
is invalid when compiling for BookE.
This commit is contained in:
parent
c3bbfed430
commit
9da005c692
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198968
@ -118,7 +118,9 @@ static void cpu_print_speed(void);
|
||||
static void cpu_6xx_setup(int cpuid, uint16_t vers);
|
||||
static void cpu_6xx_print_cacheinfo(u_int, uint16_t);
|
||||
static void cpu_e500_setup(int cpuid, uint16_t vers);
|
||||
#ifndef E500
|
||||
static void cpu_970_setup(int cpuid, uint16_t vers);
|
||||
#endif
|
||||
|
||||
void
|
||||
cpu_setup(u_int cpuid)
|
||||
@ -195,12 +197,14 @@ cpu_setup(u_int cpuid)
|
||||
cpu_6xx_setup(cpuid, vers);
|
||||
break;
|
||||
|
||||
#ifndef E500
|
||||
case IBM970:
|
||||
case IBM970FX:
|
||||
case IBM970GX:
|
||||
case IBM970MP:
|
||||
cpu_970_setup(cpuid, vers);
|
||||
break;
|
||||
#endif
|
||||
|
||||
case FSL_E500v1:
|
||||
case FSL_E500v2:
|
||||
@ -429,6 +433,7 @@ cpu_e500_setup(int cpuid, uint16_t vers)
|
||||
printf("cpu%d: HID0 %b", cpuid, (int)hid0, HID0_E500_BITMASK);
|
||||
}
|
||||
|
||||
#ifndef E500
|
||||
static void
|
||||
cpu_970_setup(int cpuid, uint16_t vers)
|
||||
{
|
||||
@ -458,4 +463,4 @@ cpu_970_setup(int cpuid, uint16_t vers)
|
||||
: "=r" (hid0_hi) : "K" (SPR_HID0));
|
||||
printf("cpu%d: HID0 %b", cpuid, (int)(hid0_hi), HID0_970_BITMASK);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user