From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEgio-0001X8-Rq for qemu-devel@nongnu.org; Mon, 13 Jul 2015 12:36:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEgij-0000MJ-On for qemu-devel@nongnu.org; Mon, 13 Jul 2015 12:36:50 -0400 Received: from mail-wg0-f47.google.com ([74.125.82.47]:34480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEgij-0000M3-Ij for qemu-devel@nongnu.org; Mon, 13 Jul 2015 12:36:45 -0400 Received: by wgkl9 with SMTP id l9so30425617wgk.1 for ; Mon, 13 Jul 2015 09:36:44 -0700 (PDT) References: <1436544486-31169-1-git-send-email-fred.konrad@greensocs.com> <1436544486-31169-3-git-send-email-fred.konrad@greensocs.com> <87si8sjbk9.fsf@linaro.org> <55A3E438.1010904@redhat.com> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <55A3E438.1010904@redhat.com> Date: Mon, 13 Jul 2015 17:36:42 +0100 Message-ID: <87pp3wj9ph.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC PATCH V2 2/3] cpus: add a tcg_executing flag. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: mttcg@greensocs.com, Peter Maydell , Mark Burton , Alvise Rigo , QEMU Developers , Guillaume Delbergue , KONRAD =?utf-8?B?RnLDqWQ=?= =?utf-8?B?w6lyaWM=?= Paolo Bonzini writes: > On 13/07/2015 18:10, Peter Maydell wrote: >> (4) a few other things which are suspicious at best: >> hw/intc/apic_common.c: volatile int a_i_d = apic_irq_delivered; > > This one has a comment above: > > /* Copy this into a local variable to encourage gcc to emit a plain > * register for a sys/sdt.h marker. For details on this workaround, see: > * https://sourceware.org/bugzilla/show_bug.cgi?id=13296 > */ > >> hw/xen/xen_pt_msi.c: const volatile uint32_t *vec_ctrl; > > Seems to be MMIO (yes, really), so okay. For some reason I don't find the use of the word "encourage" w.r.t compiler behaviour particularly encouraging ;-) -- Alex Bennée