target/ppc: booke: Watchdog Timer interrupt
Remove the switch as this function applies to BookE only. Signed-off-by: Fabiano Rosas <farosas@linux.ibm.com> Message-Id: <20220128224018.1228062-11-farosas@linux.ibm.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
904e842865
commit
f2ba48779c
@ -749,7 +749,6 @@ static void powerpc_excp_booke(PowerPCCPU *cpu, int excp)
|
|||||||
{
|
{
|
||||||
CPUState *cs = CPU(cpu);
|
CPUState *cs = CPU(cpu);
|
||||||
CPUPPCState *env = &cpu->env;
|
CPUPPCState *env = &cpu->env;
|
||||||
int excp_model = env->excp_model;
|
|
||||||
target_ulong msr, new_msr, vector;
|
target_ulong msr, new_msr, vector;
|
||||||
int srr0, srr1;
|
int srr0, srr1;
|
||||||
|
|
||||||
@ -902,14 +901,8 @@ static void powerpc_excp_booke(PowerPCCPU *cpu, int excp)
|
|||||||
break;
|
break;
|
||||||
case POWERPC_EXCP_WDT: /* Watchdog timer interrupt */
|
case POWERPC_EXCP_WDT: /* Watchdog timer interrupt */
|
||||||
trace_ppc_excp_print("WDT");
|
trace_ppc_excp_print("WDT");
|
||||||
switch (excp_model) {
|
srr0 = SPR_BOOKE_CSRR0;
|
||||||
case POWERPC_EXCP_BOOKE:
|
srr1 = SPR_BOOKE_CSRR1;
|
||||||
srr0 = SPR_BOOKE_CSRR0;
|
|
||||||
srr1 = SPR_BOOKE_CSRR1;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case POWERPC_EXCP_DTLB: /* Data TLB error */
|
case POWERPC_EXCP_DTLB: /* Data TLB error */
|
||||||
case POWERPC_EXCP_ITLB: /* Instruction TLB error */
|
case POWERPC_EXCP_ITLB: /* Instruction TLB error */
|
||||||
|
Loading…
Reference in New Issue
Block a user