Am 25.06.2012 12:04, schrieb Stefan Hajnoczi: > On Sun, Jun 24, 2012 at 3:05 PM, liu ping fan <qemul...@gmail.com> wrote: >> On Fri, Jun 22, 2012 at 8:36 PM, Stefan Hajnoczi <stefa...@gmail.com> wrote: >>> On Thu, Jun 21, 2012 at 4:06 PM, Liu Ping Fan <qemul...@gmail.com> wrote: >>>> diff --git a/main-loop.h b/main-loop.h >>>> index dce1cd9..d8d44a4 100644 >>>> --- a/main-loop.h >>>> +++ b/main-loop.h >>>> @@ -323,6 +323,9 @@ void qemu_bh_delete(QEMUBH *bh); >>>> int qemu_add_child_watch(pid_t pid); >>>> #endif >>>> >>>> +void qemu_mutex_lock_cpu(void *_env); >>>> +void qemu_mutex_unlock_cpu(void *_env); >>> >>> Why void* instead of CPUArchState*? >>> >> Because we can hide the CPUArchState from apic.c > > There's probably a nicer way of doing that than void*.
CPUState, as requested. Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg