mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
ppc/xive2: Check crowd backlog when scanning group backlog
When processing a backlog scan for group interrupts, also take into account crowd interrupts. Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com> Signed-off-by: Michael Kowal <kowal@linux.ibm.com> Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
This commit is contained in:
parent
7988ac0826
commit
0b266ae15e
2 changed files with 59 additions and 25 deletions
|
@ -236,4 +236,8 @@ void xive2_nvgc_pic_print_info(Xive2Nvgc *nvgc, uint32_t nvgc_idx,
|
|||
#define NVx_BACKLOG_OP PPC_BITMASK(52, 53)
|
||||
#define NVx_BACKLOG_PRIO PPC_BITMASK(57, 59)
|
||||
|
||||
/* split the 6-bit crowd/group level */
|
||||
#define NVx_CROWD_LVL(level) ((level >> 4) & 0b11)
|
||||
#define NVx_GROUP_LVL(level) (level & 0b1111)
|
||||
|
||||
#endif /* PPC_XIVE2_REGS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue