mirror of
https://github.com/qemu/qemu.git
synced 2025-08-16 14:54:29 +00:00
hw/pci-host/astro: Trigger CPU irq on CPU HPA in high memory
The CPU HPA is in the high F-region on PA2.0 CPUs, so use F_EXTEND() to trigger interrupt request at the right CPU HPA address. Note that the cpu_hpa value comes out of the IRT, which doesn't store the higher addresss bits. Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
fd842b2f4c
commit
64bf09674a
@ -384,7 +384,7 @@ static void elroy_set_irq(void *opaque, int irq, int level)
|
|||||||
uint32_t ena = bit & ~old_ilr;
|
uint32_t ena = bit & ~old_ilr;
|
||||||
s->ilr = old_ilr | bit;
|
s->ilr = old_ilr | bit;
|
||||||
if (ena != 0) {
|
if (ena != 0) {
|
||||||
stl_be_phys(&address_space_memory, cpu_hpa, val & 63);
|
stl_be_phys(&address_space_memory, F_EXTEND(cpu_hpa), val & 63);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
s->ilr = old_ilr & ~bit;
|
s->ilr = old_ilr & ~bit;
|
||||||
|
Loading…
Reference in New Issue
Block a user