[PATCH] openjdk/zero: only use FPU opcodes if FPU is available
Gary Benson
gbenson at redhat.com
Tue Jun 22 01:47:51 PDT 2010
Hi Sebastian,
I'm happy with this patch if it allows Zero to build where it
otherwise wouldn't, but be aware that without this code or
some equivalent it will not be possible to pass the TCK with
the build.
Have you signed the SCA? If so I can (or you can) make a webrev
for this and submit it for inclusion.
Cheers,
Gary
Sebastian Andrzej Siewior wrote:
> Those two opcodes are not available on non-FPU machines. If we have
> the SPE extension we could use evldd and evstdd but this requires
> the address to be 64bit aligned and I'm not sure whether this
> guaranteed here.
>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>
> ---
> .../src/os_cpu/linux_zero/vm/os_linux_zero.hpp | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/ports/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.hpp b/ports/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.hpp
> index 86d3562..40fd41e 100644
> --- a/ports/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.hpp
> +++ b/ports/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.hpp
> @@ -33,7 +33,7 @@
>
> // Atomically copy 64 bits of data
> static void atomic_copy64(volatile void *src, volatile void *dst) {
> -#if defined(PPC) && !defined(_LP64)
> +#if defined(PPC) && !defined(_LP64) && !defined(__NO_FPRS__)
> double tmp;
> asm volatile ("lfd %0, 0(%1)\n"
> "stfd %0, 0(%2)\n"
> --
> 1.6.6.1
--
http://gbenson.net/
More information about the jdk6-dev
mailing list