[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [5601] Halt the CPU using a qemu_irq
From: |
Paul Brook |
Subject: |
Re: [Qemu-devel] [5601] Halt the CPU using a qemu_irq |
Date: |
Sun, 2 Nov 2008 13:12:53 +0100 |
User-agent: |
KMail/1.9.9 |
> +static void cpu_halt_signal(void *opaque, int irq, int level)
> +{
> + if (level && cpu_single_env)
> + cpu_interrupt(cpu_single_env, CPU_INTERRUPT_HALT);
> +}
>...
> + cpu_halt = qemu_allocate_irqs(cpu_halt_signal, NULL, 1);
Will this DTRT for SMP, or should we be including cpu_env as an argument to
cpu_halt_signal? Relying on cpu_single_env being set in an IRQ handler seems
kinda sketchy.
Paul