[PATCH] openjdk/zero: only use FPU opcodes if FPU is available (original) (raw)
Sebastian Andrzej Siewior openjdk at ml.breakpoint.cc
Wed Jun 23 07:51:56 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 ]
- Andrew Haley | 2010-06-23 13:32:07 [+0100]:
Basically, if you just want to run stuff then it's ok to bypass that piece of assembler, but if you want to certify the builds for whatever reason then you will need to figure out some other way to do a 64-bit atomic copy. Which is pretty easy: static void atomiccopy64(volatile void *src, volatile void *dst) { pthreadmutexlock(&themutex); *dst = *src; pthreadmutexunlock(&themutex); } ... assuming that's the only place volatile doubles are ever touched.
I though about that. With this you need to grab the same mutex in every read section.
Andrew.
Sebastian
- 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 ]