aboutsummaryrefslogtreecommitdiff
path: root/cputlb.c
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2013-01-03 13:25:37 +0000
committerAlexander Graf <agraf@suse.de>2013-01-07 17:37:10 +0100
commit6c5e84c25fc70717c410150b23c765bedf0af52d (patch)
tree48fc821e621ed9b9f203171d3ecf49bf1f617b37 /cputlb.c
parent65b9d0d5659687ebb85b1305ac70b3a84df16e5a (diff)
downloadqemu-6c5e84c25fc70717c410150b23c765bedf0af52d.zip
qemu-6c5e84c25fc70717c410150b23c765bedf0af52d.tar.gz
qemu-6c5e84c25fc70717c410150b23c765bedf0af52d.tar.bz2
openpic: fix sense and priority bits
Previously, the sense and priority bits were masked off when writing to IVPR, and all interrupts were treated as edge-triggered (despite the existence of code for handling level-triggered interrupts). Polarity is implemented only as storage. We don't simulate the bad effects that you'd get on real hardware if you set this incorrectly, but at least the guest sees the right thing when it reads back the register. Sense now controls level/edge on FSL external interrupts (and all interrupts on non-FSL MPIC). FSL internal interrupts do not have a sense bit (reads as zero), but are level. FSL timers and IPIs do not have sense or polarity bits (read as zero), and are edge-triggered. To accommodate FSL internal interrupts, QEMU's internal notion of whether an interrupt is level-triggered is separated from the IVPR bit. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cputlb.c')
0 files changed, 0 insertions, 0 deletions