Received: from eggs.gnu.org ([208.118.235.92]:53906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUxCT-0007wG-3B for qemu-devel@nongnu.org; Thu, 17 May 2012 05:40:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUxCO-0003H3-0n for qemu-devel@nongnu.org; Thu, 17 May 2012 05:40:48 -0400 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:58781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUxCN-0003Ge-AY for qemu-devel@nongnu.org; Thu, 17 May 2012 05:40:43 -0400 Date: Thu, 17 May 2012 17:38:12 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7?= Message-ID: <20120517093812.GA31654@cs.nctu.edu.tw> References: <1337243758-11802-1-git-send-email-proljc@gmail.com> <1337243758-11802-2-git-send-email-proljc@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1337243758-11802-2-git-send-email-proljc@gmail.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 01/15] Openrisc: add target stub List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jia Liu Cc: qemu-devel@nongnu.org > +CPUOPENRISCState *cpu_openrisc_init(const char *cpu_model) > +{ > + CPUOPENRISCState *env; > + static int tcg_inited; > + > + env =3D g_malloc0(sizeof(*env)); > + memset(env, 0, sizeof(*env)); ^^^^^^ No need to memset env to zero, since g_malloc0 already did it for you. > diff --git a/target-openrisc/helper.h b/target-openrisc/helper.h > new file mode 100644 > index 0000000..103d9b4 > --- /dev/null > +++ b/target-openrisc/helper.h [snip] > +#include "def-helper.h" > + > +#include "def-helper.h" I suppose you only need to #include "def-helper.h" once? Regards, chenwj --=20 Wei-Ren Chen (=E9=99=B3=E9=9F=8B=E4=BB=BB) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj