hw/intc/arm_gicv3: Check correct HCR_EL2 bit when routing IRQ
commit042374c92e83da5c8f906b9b97814a21eac2a09f
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 23 Jul 2018 18:03:37 +0000 (23 19:03 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 24 Jul 2018 10:42:15 +0000 (24 11:42 +0100)
treee7dcbcbd5fc61a738fdc6e70cb140570fe4c17f1
parent0c6c43955421764998eb0dd1863ee8b38a3ff1c1
hw/intc/arm_gicv3: Check correct HCR_EL2 bit when routing IRQ

In icc_dir_write() we were incorrectly checking HCR_EL2.FMO
when determining whether IRQ should be routed to EL2; this should
be HCR_EL2.IMO (compare the GICv3 pseudocode ICC_DIR_EL1[]).
Use the correct mask.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180723180337.17378-1-peter.maydell@linaro.org
hw/intc/arm_gicv3_cpuif.c