Skip to content

Commit

Permalink
target/ppc: Readability improvements in exception handlers
Browse files Browse the repository at this point in the history
Improve readability by shortening some long comments, removing
comments that state the obvious and dropping some empty lines so they
don't distract when reading the code.

Acked-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
  • Loading branch information
zbalaton authored and npiggin committed Mar 12, 2024
1 parent bc30c1c commit ab45250
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 147 deletions.
1 change: 1 addition & 0 deletions target/ppc/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -2954,6 +2954,7 @@ static inline bool ppc_has_spr(PowerPCCPU *cpu, int spr)
}

#if !defined(CONFIG_USER_ONLY)
/* Sort out endianness of interrupt. Depends on the CPU, HV mode, etc. */
static inline bool ppc_interrupts_little_endian(PowerPCCPU *cpu, bool hv)
{
PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu);
Expand Down

0 comments on commit ab45250

Please sign in to comment.