diff options
author | Cédric Le Goater | 2021-09-01 11:41:52 +0200 |
---|---|---|
committer | David Gibson | 2021-09-29 11:37:38 +0200 |
commit | daf115cf9a42bb42eabaf6177e59084c22cc7b1a (patch) | |
tree | 4b18f681ec6bfbd2fbced0b2e25c209512b6ad8e | |
parent | ppc/xive: Export priority_to_ipb() helper (diff) | |
download | qemu-daf115cf9a42bb42eabaf6177e59084c22cc7b1a.tar.gz qemu-daf115cf9a42bb42eabaf6177e59084c22cc7b1a.tar.xz qemu-daf115cf9a42bb42eabaf6177e59084c22cc7b1a.zip |
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>
-rw-r--r-- | hw/intc/xive.c | 5 | ||||
-rw-r--r-- | include/hw/ppc/xive.h | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/hw/intc/xive.c b/hw/intc/xive.c index b0c4f76b1d..6c82326ec7 100644 --- a/hw/intc/xive.c +++ b/hw/intc/xive.c @@ -141,11 +141,6 @@ void xive_tctx_ipb_update(XiveTCTX *tctx, uint8_t ring, uint8_t ipb) xive_tctx_notify(tctx, ring); } -static inline uint32_t xive_tctx_word2(uint8_t *ring) -{ - return *((uint32_t *) &ring[TM_WORD2]); -} - /* * XIVE Thread Interrupt Management Area (TIMA) */ diff --git a/include/hw/ppc/xive.h b/include/hw/ppc/xive.h index 29b130eaea..252c58a1d6 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 */ |