diff options
author | Cédric Le Goater | 2022-03-02 06:51:39 +0100 |
---|---|---|
committer | Cédric Le Goater | 2022-03-02 06:51:39 +0100 |
commit | 09a7e60c6411c7c390aa392672fbdbef5e5e2084 (patch) | |
tree | 1a2133625da3822d7691ea40053a5cfa8af61970 /hw/intc/pnv_xive2.c | |
parent | pnv/xive2: Add support for automatic save&restore (diff) | |
download | qemu-09a7e60c6411c7c390aa392672fbdbef5e5e2084.tar.gz qemu-09a7e60c6411c7c390aa392672fbdbef5e5e2084.tar.xz qemu-09a7e60c6411c7c390aa392672fbdbef5e5e2084.zip |
pnv/xive2: Add support for 8bits thread id
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw/intc/pnv_xive2.c')
-rw-r--r-- | hw/intc/pnv_xive2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/intc/pnv_xive2.c b/hw/intc/pnv_xive2.c index b51571c603..87303b4064 100644 --- a/hw/intc/pnv_xive2.c +++ b/hw/intc/pnv_xive2.c @@ -439,6 +439,11 @@ static uint32_t pnv_xive2_get_config(Xive2Router *xrtr) cfg |= XIVE2_VP_SAVE_RESTORE; } + if (GETFIELD(CQ_XIVE_CFG_HYP_HARD_RANGE, + xive->cq_regs[CQ_XIVE_CFG >> 3]) == CQ_XIVE_CFG_THREADID_8BITS) { + cfg |= XIVE2_THREADID_8BITS; + } + return cfg; } |