qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] wfi in qemu-system-arm (v6) on a Mac host locks up qemu
@ 2009-02-05 13:44 Steve Lemke
  2009-02-05 14:00 ` Paul Brook
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Lemke @ 2009-02-05 13:44 UTC (permalink / raw)
  To: qemu-devel

Is anyone running an ARM v6 kernel in qemu-system-arm on a Mac built  
from recent qemu trunk?

When the target issues a "wfi" (wait for interrupt) instruction, the  
select timeout gets set to 5000 which appears to cause the entire app  
to block in select for 5 seconds at a time and Mac OS doesn't seem to  
be too thrilled about that.

It looks like changing HELPER(wfi) in op_helper.c to simply call  
cpu_loop_exit() without setting env->exception_index or env_halted  
appears to fix it, (essentially attempting to handle it more like a  
NOP, I suppose) though I'm not sure that's the best "fix".

(I suppose using a v4 or v5 kernel would probably work as well if that  
happens to be an available option...)

Paul pointed me to the recent (related) "Fix nographic mode and VNC"  
thread, but that thread didn't seem to actually end in a solution.

Has anyone thought about this any more?

--Steve

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] wfi in qemu-system-arm (v6) on a Mac host locks up qemu
  2009-02-05 13:44 [Qemu-devel] wfi in qemu-system-arm (v6) on a Mac host locks up qemu Steve Lemke
@ 2009-02-05 14:00 ` Paul Brook
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Brook @ 2009-02-05 14:00 UTC (permalink / raw)
  To: qemu-devel; +Cc: Steve Lemke

On Thursday 05 February 2009, Steve Lemke wrote:
> Is anyone running an ARM v6 kernel in qemu-system-arm on a Mac built
> from recent qemu trunk?
>
> When the target issues a "wfi" (wait for interrupt) instruction, the
> select timeout gets set to 5000 which appears to cause the entire app
> to block in select for 5 seconds at a time and Mac OS doesn't seem to
> be too thrilled about that.

What exactly is OSX expecting qemu to do in that time?

GUI updates (which generally involves polling the OS for GUI events) should be 
driven off the gui timer. If the GUI isn't active then why shouldn't we sleep 
for a long period of time?

Paul

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-05 14:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-05 13:44 [Qemu-devel] wfi in qemu-system-arm (v6) on a Mac host locks up qemu Steve Lemke
2009-02-05 14:00 ` Paul Brook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).