Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NayXh-0006J9-H1 for qemu-devel@nongnu.org; Fri, 29 Jan 2010 16:38:17 -0500 Received: from [199.232.76.173] (port=51001 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NayXg-0006HW-5I for qemu-devel@nongnu.org; Fri, 29 Jan 2010 16:38:16 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NayXf-0007pz-96 for qemu-devel@nongnu.org; Fri, 29 Jan 2010 16:38:15 -0500 Received: from mail-ew0-f221.google.com ([209.85.219.221]:61043) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NayXe-0007pn-Up for qemu-devel@nongnu.org; Fri, 29 Jan 2010 16:38:15 -0500 Received: by ewy21 with SMTP id 21so3435731ewy.2 for ; Fri, 29 Jan 2010 13:38:13 -0800 (PST) Date: Fri, 29 Jan 2010 22:38:08 +0100 From: "Edgar E. Iglesias" Subject: Re: [Qemu-devel] [PATCH] Porting TCG to alpha platform Message-ID: <20100129213808.GA11999@laped.iglesias.mooo.com> References: <62332.72612.qm@web15907.mail.cnb.yahoo.com> <4B63153A.6070509@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B63153A.6070509@twiddle.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , identifier scorpio Cc: qemu-devel@nongnu.org On Fri, Jan 29, 2010 at 09:04:58AM -0800, Richard Henderson wrote: > On 01/28/2010 05:55 PM, identifier scorpio wrote: > > Your code is more skilled and I learn a lot from it, but I haven't yet > > recognized the key difference between your version and mine. In last > > mail, you've said that "Mainly, tcg_target_long was used places that > > could be holding HOST values, which means that the host values would > > have been truncated to 32 bits.", and I can't fully understand it, may > > you put it more clearly. > > It was a mis-statement made while tired. Of course tcg_target_long is > defined to int64_t when TCG_TARGET_REG_BITS == 64, so there was no > truncation to 32 bits. > > Have you tested of any of the other embedded targets? You may be able > to find the error with one of those easier than finding it emulating > full-scale Windows. See the images at the bottom of the QEMU download page. Hi, Although I've never hacked on a TCG backend I'd still like to give some advice. >From experience when developing both the CRIS and the MicroBlaze ISA translators I very much suggest getting something very stable to work in linux-user before going further. I used GCC's C torture tests and OpenSSL's bignum tests to verify the ports. In particular, OpenSSL's bignum tests seem to excersice lot's of cornercases. If you pass those, you've come a long way. In general it's much easier to debug a guest testcase (bntest, etc) that fails compared to huge propretiary blob that fails (windows). Just a suggestion, hope it helps. Cheers, Edgar