[PATCH] openjdk/zero: only use FPU opcodes if FPU is available (original) (raw)
Gary Benson gbenson at redhat.com
Tue Jun 22 01:47:51 PDT 2010
- Previous message: [PATCH] openjdk/zero: only use FPU opcodes if FPU is available
- Next message: [PATCH] openjdk/zero: only use FPU opcodes if FPU is available
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/oscpu/linuxzero/vm/oslinuxzero.hpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ports/hotspot/src/oscpu/linuxzero/vm/oslinuxzero.hpp b/ports/hotspot/src/oscpu/linuxzero/vm/oslinuxzero.hpp index 86d3562..40fd41e 100644 --- a/ports/hotspot/src/oscpu/linuxzero/vm/oslinuxzero.hpp +++ b/ports/hotspot/src/oscpu/linuxzero/vm/oslinuxzero.hpp @@ -33,7 +33,7 @@ // Atomically copy 64 bits of data static void atomiccopy64(volatile void *src, volatile void *dst) { -#if defined(PPC) && !defined(LP64) +#if defined(PPC) && !defined(LP64) && !defined(NOFPRS) double tmp; asm volatile ("lfd %0, 0(%1)\n" "stfd %0, 0(%2)\n" -- 1.6.6.1
- Previous message: [PATCH] openjdk/zero: only use FPU opcodes if FPU is available
- Next message: [PATCH] openjdk/zero: only use FPU opcodes if FPU is available
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]