diff options
author | Paolo Bonzini | 2021-07-29 09:56:38 +0200 |
---|---|---|
committer | Paolo Bonzini | 2021-07-29 10:15:52 +0200 |
commit | f594bfb79f572b27404d251f9758a36b83271580 (patch) | |
tree | 9bf8c463d7d7e152254c3b310d94f9f22a698ae6 /target/i386/tcg | |
parent | target/i386: Added consistency checks for event injection (diff) | |
download | qemu-f594bfb79f572b27404d251f9758a36b83271580.tar.gz qemu-f594bfb79f572b27404d251f9758a36b83271580.tar.xz qemu-f594bfb79f572b27404d251f9758a36b83271580.zip |
target/i386: fix typo in ctl_has_irq
The shift constant was incorrect, causing int_prio to always be zero.
Signed-off-by: Lara Lazier <laramglazier@gmail.com>
[Rewritten commit message since v1 had already been included. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/tcg')
-rw-r--r-- | target/i386/tcg/sysemu/svm_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/tcg/sysemu/svm_helper.c b/target/i386/tcg/sysemu/svm_helper.c index 90a9de30f8..e151104b4e 100644 --- a/target/i386/tcg/sysemu/svm_helper.c +++ b/target/i386/tcg/sysemu/svm_helper.c @@ -70,7 +70,7 @@ static inline bool ctl_has_irq(uint32_t int_ctl) uint32_t int_prio; uint32_t tpr; - int_prio = (int_ctl & V_INTR_PRIO_MASK) >> V_INTR_MASKING_SHIFT; + int_prio = (int_ctl & V_INTR_PRIO_MASK) >> V_INTR_PRIO_SHIFT; tpr = int_ctl & V_TPR_MASK; return (int_ctl & V_IRQ_MASK) && (int_prio >= tpr); } |