aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2021-09-01 11:41:52 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2021-09-29 19:37:38 +1000
commitdaf115cf9a42bb42eabaf6177e59084c22cc7b1a (patch)
tree4b18f681ec6bfbd2fbced0b2e25c209512b6ad8e /include
parent89d2468d964e635eb80d4d00c29074a28d0e6d19 (diff)
downloadqemu-daf115cf9a42bb42eabaf6177e59084c22cc7b1a.zip
qemu-daf115cf9a42bb42eabaf6177e59084c22cc7b1a.tar.gz
qemu-daf115cf9a42bb42eabaf6177e59084c22cc7b1a.tar.bz2
ppc/xive: Export xive_tctx_word2() helper
Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20210901094153.227671-8-clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
-rw-r--r--include/hw/ppc/xive.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/ppc/xive.h b/include/hw/ppc/xive.h
index 29b130e..252c58a 100644
--- a/include/hw/ppc/xive.h
+++ b/include/hw/ppc/xive.h
@@ -335,6 +335,11 @@ struct XiveTCTX {
XivePresenter *xptr;
};
+static inline uint32_t xive_tctx_word2(uint8_t *ring)
+{
+ return *((uint32_t *) &ring[TM_WORD2]);
+}
+
/*
* XIVE Router
*/