From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G52N2-0008BJ-Qk for qemu-devel@nongnu.org; Mon, 24 Jul 2006 11:29:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G52My-000895-P2 for qemu-devel@nongnu.org; Mon, 24 Jul 2006 11:29:23 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G52My-000892-M2 for qemu-devel@nongnu.org; Mon, 24 Jul 2006 11:29:20 -0400 Received: from [64.233.166.179] (helo=py-out-1112.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G52O5-00053G-KT for qemu-devel@nongnu.org; Mon, 24 Jul 2006 11:30:29 -0400 Received: by py-out-1112.google.com with SMTP id d42so2292762pyd for ; Mon, 24 Jul 2006 08:28:46 -0700 (PDT) Message-ID: Date: Mon, 24 Jul 2006 08:28:46 -0700 From: "Jonathan Kalbfeld" Subject: Re: [Qemu-devel] Compile errors on Solaris for qemu 0.8.2 In-Reply-To: <44C4CD1E.1020706@win4lin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44C4CD1E.1020706@win4lin.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Ok will try when back from DC. Thx On 7/24/06, Leonardo E. Reiter wrote: > I ran into this myself yesterday. I couldn't figure out a definitive > answer, because I am no expert on the SPARC architecture, but it appears > that at least on an UltraSparc IIi machine from a few years ago, the > "sparc V9" instructions are supported. However, the gcc by default > doesn't define __sparc_v9__ on that architecture. There are some -m > flags that can be passed to gcc (like multisparc, etc.), but I'm not > sure for what host machines they are appropriate exactly. Perhaps the > SPARC experts on the list can comment more, but in the meantime, the > following simple (but likely incorrect) patch worked fine for me: > > Index: cpu-all.h > =================================================================== > RCS file: /cvsroot/qemu/qemu/cpu-all.h,v > retrieving revision 1.57 > diff -a -u -r1.57 cpu-all.h > --- cpu-all.h 18 Jul 2006 21:23:34 -0000 1.57 > +++ cpu-all.h 24 Jul 2006 13:35:47 -0000 > @@ -971,7 +971,7 @@ > return val; > } > > -#elif defined(__sparc_v9__) > +#elif defined(__sparc__) > > static inline int64_t cpu_get_real_ticks (void) > { > > > Regards, > > Leo Reiter > > Jonathan Kalbfeld wrote: > > At airport so can't paste. cpu_get_real_ticks doesn't resolve in > > vl.o. Using blastwave gcc 3.4.6. What am I missing? > > -- > Leonardo E. Reiter > Vice President of Product Development, CTO > > Win4Lin, Inc. > Virtual Computing that means Business > Main: +1 512 339 7979 > Fax: +1 512 532 6501 > http://www.win4lin.com > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel > -- -- Jonathan Kalbfeld +1 323 620 6682