mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
Add HPET emulation to qemu (Beth Kon)
This patch adds HPET emulation. It can be disabled with -disable-hpet. An hpet provides a more finely granular clocksource than otherwise available on PC. This means that latency-dependent applications (e.g. multimedia) will generally be smoother when using the HPET. Signed-off-by: Beth Kon <eak@us.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6081 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
0bacd1300d
commit
16b29ae180
13 changed files with 938 additions and 6 deletions
|
@ -945,6 +945,13 @@ void ioapic_set_irq(void *opaque, int vector, int level)
|
|||
{
|
||||
IOAPICState *s = opaque;
|
||||
|
||||
/* ISA IRQs map to GSI 1-1 except for IRQ0 which maps
|
||||
* to GSI 2. GSI maps to ioapic 1-1. This is not
|
||||
* the cleanest way of doing it but it should work. */
|
||||
|
||||
if (vector == 0)
|
||||
vector = 2;
|
||||
|
||||
if (vector >= 0 && vector < IOAPIC_NUM_PINS) {
|
||||
uint32_t mask = 1 << vector;
|
||||
uint64_t entry = s->ioredtbl[vector];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue