]> www.infradead.org Git - users/dwmw2/qemu.git/commit
ppc/xive2: Support "Pull Thread Context to Odd Thread Reporting Line"
authorGlenn Miles <milesg@linux.vnet.ibm.com>
Fri, 13 Sep 2024 16:16:55 +0000 (11:16 -0500)
committerNicholas Piggin <npiggin@gmail.com>
Sun, 3 Nov 2024 23:14:43 +0000 (09:14 +1000)
commit81939a9211dc42479fe5fd84166a714e682c1314
treef661418b4f116003ec9183de75f9659b7ab0b0ec
parent00a7a7a548ea537f888f2f90d66155f14ff93727
ppc/xive2: Support "Pull Thread Context to Odd Thread Reporting Line"

Adds support for single byte writes to offset 0xC38 of the TIMA address
space.  When this offset is written to, the hardware disables the thread
context and copies the current state information to the odd cache line of
the pair specified by the NVT structure indexed by the THREAD CAM entry.

Note that this operation is almost identical to what we are already doing
for the "Pull OS Context to Odd Thread Reporting Line" operation except
that it also invalidates the Pool and Thread Contexts.

Signed-off-by: Glenn Miles <milesg@linux.vnet.ibm.com>
Signed-off-by: Michael Kowal <kowal@linux.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/intc/xive.c
hw/intc/xive2.c
include/hw/ppc/xive2.h
include/hw/ppc/xive2_regs.h
include/hw/ppc/xive_regs.h