powerpc cpudep_ap_setup: Quite unused variable warnings.

This commit is contained in:
John Baldwin 2022-04-12 14:58:59 -07:00
parent 16471f4716
commit 7e7f7b91d0

View File

@ -308,7 +308,9 @@ cpudep_save_config(void *dummy)
void void
cpudep_ap_setup() cpudep_ap_setup()
{ {
#ifndef __powerpc64__
register_t reg; register_t reg;
#endif
uint16_t vers; uint16_t vers;
vers = mfpvr() >> 16; vers = mfpvr() >> 16;
@ -390,14 +392,14 @@ cpudep_ap_setup()
case MPC7455: case MPC7455:
case MPC7457: case MPC7457:
/* Only MPC745x CPUs have an L3 cache. */ /* Only MPC745x CPUs have an L3 cache. */
reg = mpc745x_l3_enable(bsp_state[3]); mpc745x_l3_enable(bsp_state[3]);
default: default:
break; break;
} }
reg = mpc74xx_l2_enable(bsp_state[2]); mpc74xx_l2_enable(bsp_state[2]);
reg = mpc74xx_l1d_enable(); mpc74xx_l1d_enable();
reg = mpc74xx_l1i_enable(); mpc74xx_l1i_enable();
break; break;
case IBMPOWER7: case IBMPOWER7: