From owner-freebsd-java@FreeBSD.ORG Sun Jan 23 04:02:29 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91B5116A4CF for ; Sun, 23 Jan 2005 04:02:29 +0000 (GMT) Received: from web51802.mail.yahoo.com (web51802.mail.yahoo.com [206.190.38.233]) by mx1.FreeBSD.org (Postfix) with SMTP id 1869043D5C for ; Sun, 23 Jan 2005 04:02:29 +0000 (GMT) (envelope-from huanghwh@yahoo.com) Received: (qmail 71601 invoked by uid 60001); 23 Jan 2005 04:02:12 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=4zV8cmXKtIcgr4DYMVTHkJFkMwpMw0f2FmQn0TdY+rqH2pqlHy1mJhlJwz9Au9M7dduth8Hz/Do58/FfMXQzRxFVVlb4lgnm2ppINL549DTu8QjQyipZmukRlMmkvgniaid9ubAATKgbPfWPzjLdfgqfmqRihCmSwcJYnzm+Cw4= ; Message-ID: <20050123040212.71599.qmail@web51802.mail.yahoo.com> Received: from [218.20.157.197] by web51802.mail.yahoo.com via HTTP; Sun, 23 Jan 2005 12:02:12 CST Date: Sun, 23 Jan 2005 12:02:12 +0800 (CST) From: huang wen hui To: Alexey Zelkin In-Reply-To: <20050121101652.GA93319@phantom.cris.net> MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit cc: java@freebsd.org Subject: Fixed: Re: amd64 and Intel processors problem (was: Re: jdk15 fail compile under amd64) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 04:02:29 -0000 --- Alexey Zelkin 的正文: > hi, > > Thank you for posting of your dmesg and backtraces. > They described > a problem. > > Unfortunatelly, JVM building/built for amd64, > expects to be running > at real amd64 hardware. And in your case, you're > using Intel hardware > running in amd64 emulation mode (as far as I > understand). > > At this point -- it's impossible to use such > combination, sorry. ok, from search web, the problem is Intel EM64T does not suport 3DNow: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5095421 http://www.blackdown.org/java-linux/java-linux@java.blackdown.org/java-linux-msg00159.html and from jdk16,this problem can be fixed: --- ../../hotspot/src/os_cpu/bsd_amd64/vm/prefetch_bsd_amd64.inline.hpp~ Fri Jan 21 12:10:42 2005 +++ ../../hotspot/src/os_cpu/bsd_amd64/vm/prefetch_bsd_amd64.inline.hpp Sun Jan 23 09:37:34 2005 @@ -16,6 +16,10 @@ // Force prefetchw. The gcc builtin produces prefetcht0 or prefetchw // depending on command line switches we don't control here. // Use of this method should be gated by VM_Version::has_prefetchw. - __asm__ ("prefetchw (%0,%1,1)" : : "r" (loc), "r" (interval)); + //__asm__ ("prefetchw (%0,%1,1)" : : "r" (loc), "r" (interval)); // __builtin_prefetch((char*) loc + interval, 1); // prefetcht0/prefetchw (%rsi,%rdi,1) + // Do not use the 3dnow prefetchw instruction. It isn't supported on em64t. + // __asm__ ("prefetchw (%0,%1,1)" : : "r" (loc), "r" (interval)); + __asm__ ("prefetcht0 (%0,%1,1)" : : "r" (loc), "r" (interval)); + } Now, I can use JDK1.5 on my PE1850:) --hwh _________________________________________________________ Do You Yahoo!? 嫌邮箱太小?雅虎电邮自助扩容! http://cn.rd.yahoo.com/mail_cn/tag/10m/*http://cn.mail.yahoo.com/event/10m.html