Re: [RFC PATCH 01/13] target/ppc: define PPC_INTERRUPT_* values directly

2022-08-17 Thread David Gibson
On Mon, Aug 15, 2022 at 01:20:07PM -0300, Matheus Ferst wrote: > This enum defines the bit positions in env->pending_interrupts for each > interrupt. However, except for the comparison in kvmppc_set_interrupt, > the values are always used as (1 << PPC_INTERRUPT_*). Define them > directly like that

[RFC PATCH 01/13] target/ppc: define PPC_INTERRUPT_* values directly

2022-08-15 Thread Matheus Ferst
This enum defines the bit positions in env->pending_interrupts for each interrupt. However, except for the comparison in kvmppc_set_interrupt, the values are always used as (1 << PPC_INTERRUPT_*). Define them directly like that to save some clutter. No functional change intended. Signed-off-by: Ma