target/ppc: Remove some superfluous parentheses

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Acked-by: Nicholas Piggin <npiggin@gmail.com>
Message-ID: <8384ed0f7335093012bbd3d28fb2a543a2e7346c.1686868895.git.balaton@eik.bme.hu>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
BALATON Zoltan 2023-06-16 01:03:10 +02:00 committed by Daniel Henrique Barboza
parent d73a175150
commit 2306c60633

View File

@ -1030,7 +1030,7 @@ static void powerpc_excp_74xx(PowerPCCPU *cpu, int excp)
{ {
int lev = env->error_code; int lev = env->error_code;
if ((lev == 1) && cpu->vhyp) { if (lev == 1 && cpu->vhyp) {
dump_hcall(env); dump_hcall(env);
} else { } else {
dump_syscall(env); dump_syscall(env);
@ -1048,7 +1048,7 @@ static void powerpc_excp_74xx(PowerPCCPU *cpu, int excp)
* uses VOF and the 74xx CPUs, so although the 74xx don't have * uses VOF and the 74xx CPUs, so although the 74xx don't have
* HV mode, we need to keep hypercall support. * HV mode, we need to keep hypercall support.
*/ */
if ((lev == 1) && cpu->vhyp) { if (lev == 1 && cpu->vhyp) {
PPCVirtualHypervisorClass *vhc = PPCVirtualHypervisorClass *vhc =
PPC_VIRTUAL_HYPERVISOR_GET_CLASS(cpu->vhyp); PPC_VIRTUAL_HYPERVISOR_GET_CLASS(cpu->vhyp);
vhc->hypercall(cpu->vhyp, cpu); vhc->hypercall(cpu->vhyp, cpu);
@ -1572,7 +1572,7 @@ static void powerpc_excp_books(PowerPCCPU *cpu, int excp)
case POWERPC_EXCP_SYSCALL: /* System call exception */ case POWERPC_EXCP_SYSCALL: /* System call exception */
lev = env->error_code; lev = env->error_code;
if ((lev == 1) && cpu->vhyp) { if (lev == 1 && cpu->vhyp) {
dump_hcall(env); dump_hcall(env);
} else { } else {
dump_syscall(env); dump_syscall(env);
@ -1585,7 +1585,7 @@ static void powerpc_excp_books(PowerPCCPU *cpu, int excp)
env->nip += 4; env->nip += 4;
/* "PAPR mode" built-in hypercall emulation */ /* "PAPR mode" built-in hypercall emulation */
if ((lev == 1) && books_vhyp_handles_hcall(cpu)) { if (lev == 1 && books_vhyp_handles_hcall(cpu)) {
PPCVirtualHypervisorClass *vhc = PPCVirtualHypervisorClass *vhc =
PPC_VIRTUAL_HYPERVISOR_GET_CLASS(cpu->vhyp); PPC_VIRTUAL_HYPERVISOR_GET_CLASS(cpu->vhyp);
vhc->hypercall(cpu->vhyp, cpu); vhc->hypercall(cpu->vhyp, cpu);