]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc/xive2: Support "Pull Thread Context to Register" operation
authorGlenn Miles <milesg@linux.vnet.ibm.com>
Fri, 13 Sep 2024 16:16:53 +0000 (11:16 -0500)
committerNicholas Piggin <npiggin@gmail.com>
Sun, 3 Nov 2024 23:14:39 +0000 (09:14 +1000)
commitf82fec6c1f3bf127eb46e811b0a529d83793381c
tree2aaf0b4dd4add44a051e374c5415ece7f8f767e5
parentcfe9a7f286f8db4316a25ac4471d91db8b387262
ppc/xive2: Support "Pull Thread Context to Register" operation

Adds support for single byte read of offset 0x838 of the TIMA address
space.  According to the XIVE2 Specification, this causes the hardware
to atomically:
  1. Read the number of bytes requested (lbz or lhz are supported).
  2. Reset the valid bit of the thread context.
  3. Return the number of bytes requested in step 1 to a register.

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@redhat.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/intc/xive.c
include/hw/ppc/xive_regs.h