Date: Fri, 22 Apr 2005 20:44:06 +0800 From: "Clarence Chu" <clcchu@hotmail.com> To: phantom@FreeBSD.org.ua, joelam@mobicon.com, freebsd-x11@freebsd.org Subject: Re: native jdk-15.2 on FreeBSD/amd64? Message-ID: <BAY16-F159DC881044D99BAB63BEBDD2D0@phx.gbl> In-Reply-To: <20050422124127.GA20205@phantom.cris.net>
index | next in thread | previous in thread | raw e-mail
>There're some reported problems with EMT64 support which fixed
>in Sun closed distribution, but not made available yet to open source
>world.
>
could the em64t problem be fixed as follows?
---- jdk15.patches.orig Thu Jan 20 04:47:28 2005
+++ jdk15.patches Fri Apr 22 18:00:54 2005
@@ -13916,7 +13916,7 @@
diff -N hotspot/src/os_cpu/bsd_amd64/vm/prefetch_bsd_amd64.inline.hpp
--- hotspot/src/os_cpu/bsd_amd64/vm/prefetch_bsd_amd64.inline.hpp 1 Jan
170 00:00:00 -0000
+++ hotspot/src/os_cpu/bsd_amd64/vm/prefetch_bsd_amd64.inline.hpp 23
Dec
004 19:35:20 -0000 1.2
-@@ -0,0 +1,21 @@
+@@ -0,0 +1,24 @@
+/*
+ * $Id: prefetch_bsd_amd64.inline.hpp,v 1.2 2004/12/23 19:35:20 phantom Exp
$
+ */
@@ -13935,8 +13935,11 @@
+ // 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)
++ // prefetcht0/prefetchw (%rsi,%rdi,1)
++ // Do not use the 3dnow prefetchw instruction. It isn't supported on
em64t
++ __asm__ ("prefetcht0 (%0,%1,1)" : : "r" (loc), "r" (interval));
+}
Index: hotspot/src/os_cpu/bsd_amd64/vm/runtime_bsd_amd64.cpp
===================================================================
_________________________________________________________________
Learn English and redeem a Sony PSP at only HK$280!
http://go.msnserver.com/HK/46165.asp
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY16-F159DC881044D99BAB63BEBDD2D0>
