From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNXxq-0005jr-NB for qemu-devel@nongnu.org; Mon, 07 Nov 2011 17:46:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNXxp-0003hV-LV for qemu-devel@nongnu.org; Mon, 07 Nov 2011 17:46:50 -0500 Received: from caibbdcaaaaf.dreamhost.com ([208.113.200.5]:34652 helo=homiemail-a47.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNXxp-0003hI-Ej for qemu-devel@nongnu.org; Mon, 07 Nov 2011 17:46:49 -0500 Received: from homiemail-a47.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a47.g.dreamhost.com (Postfix) with ESMTP id DEA18284065 for ; Mon, 7 Nov 2011 14:46:47 -0800 (PST) Received: from redwood.eagercon.com (c-76-102-3-160.hsd1.ca.comcast.net [76.102.3.160]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eager@eagerm.com) by homiemail-a47.g.dreamhost.com (Postfix) with ESMTPSA id CEEBA28405C for ; Mon, 7 Nov 2011 14:46:47 -0800 (PST) Message-ID: <4EB85FD7.2050004@eagerm.com> Date: Mon, 07 Nov 2011 14:46:47 -0800 From: Michael Eager MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] clk_setup decl missing in virtex_init List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel The declaration of clk_setup is missing in qemu/hw/virtex_ml507.c: static void virtex_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { ... ... memset(clk_setup, 0, sizeof(clk_setup)); This SEGVs because clk_setup is an inline function defined in ppc.h. (I presume that the linker generates an out-of-line copy.) It isn't clear what the declaration should be. In ppc405_uc.c, there is a decl: clk_setup_t clk_setup[PPC405EP_CLK_NB]; -- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077