mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
pnv/xive2: Define OGEN field in the TIMA
The OGEN field at offset 0x1F is a new field for Gen2 TIMA. This patch defines it. Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com> Signed-off-by: Michael Kowal <kowal@linux.vnet.ibm.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
This commit is contained in:
parent
a53304639a
commit
b9deafe7bf
2 changed files with 5 additions and 0 deletions
|
@ -742,6 +742,10 @@ void xive_tctx_reset(XiveTCTX *tctx)
|
|||
tctx->regs[TM_QW1_OS + TM_LSMFB] = 0xFF;
|
||||
tctx->regs[TM_QW1_OS + TM_ACK_CNT] = 0xFF;
|
||||
tctx->regs[TM_QW1_OS + TM_AGE] = 0xFF;
|
||||
if (!(xive_presenter_get_config(tctx->xptr) &
|
||||
XIVE_PRESENTER_GEN1_TIMA_OS)) {
|
||||
tctx->regs[TM_QW1_OS + TM_OGEN] = 2;
|
||||
}
|
||||
|
||||
/*
|
||||
* Initialize PIPR to 0xFF to avoid phantom interrupts when the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue