From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3LTH-0004Ic-8G for qemu-devel@nongnu.org; Fri, 03 Sep 2004 17:19:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3LTF-0004IP-I6 for qemu-devel@nongnu.org; Fri, 03 Sep 2004 17:19:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3LTF-0004IM-Ey for qemu-devel@nongnu.org; Fri, 03 Sep 2004 17:19:45 -0400 Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1C3LNW-0003pM-I5 for qemu-devel@nongnu.org; Fri, 03 Sep 2004 17:13:50 -0400 Message-ID: <4138DE07.2010708@gmx.com> Date: Fri, 03 Sep 2004 23:11:35 +0200 From: "Bochnig, Martin" MIME-Version: 1.0 Subject: Re: [Qemu-devel] Keyboard problem in qemu 0.6.0-2 References: <200409032051.i83KpOLj027201@tiger2.tools.intra> In-Reply-To: <200409032051.i83KpOLj027201@tiger2.tools.intra> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: bochnig@pool.math.tu-berlin.de, 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 Juergen Keil wrote: > I use the same macros that are already used for the xxxBSDs, for example > in dyngen-exec.h: Yes - I know, (at least some)BSD's libc does not support these symbols. I tried to use QEMU's *BSD code for a certain while, too. But without your modifications below, it didn't work and I got a lot of trouble and I then discarded my idea (due to my success under Solaris10). Thanks a lot! Martin > > -#if defined(_BSD) && !defined(__APPLE__) > +#if defined(_BSD) && !defined(__APPLE__) || defined(_SVR4) > #include > > #define FE_TONEAREST FP_RN > #define FE_DOWNWARD FP_RM > #define FE_UPWARD FP_RP > #define FE_TOWARDZERO FP_RZ > #define fesetround(x) fpsetround(x) > +#define fegetround() fpgetround() > #else > #include > #endif > > #ifdef __i386__ > #define AREG0 "ebp" > > > Or in target-i386/exec.h > > -#if !defined(_BSD) > +#if !defined(_BSD) && !defined(_SVR4) > extern int lrint(CPU86_LDouble x); > extern int64_t llrint(CPU86_LDouble x); > #else > #define lrint(d) ((int)rint(d)) > #define llrint(d) ((int)rint(d)) > #endif > > > >