changeset 101387:b19b16732fb0

(mark_stack): Use "flushw" instead of "ta 3" assembly call for Sparc64.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 23 Jan 2009 04:38:18 +0000
parents 7e35f82c4a0b
children 75bf5cd66568
files src/alloc.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/alloc.c	Fri Jan 23 04:37:58 2009 +0000
+++ b/src/alloc.c	Fri Jan 23 04:38:18 2009 +0000
@@ -4488,8 +4488,12 @@
      needed on ia64 too.  See mach_dep.c, where it also says inline
      assembler doesn't work with relevant proprietary compilers.  */
 #ifdef __sparc__
+#ifdef __sparc64__
+  asm ("flushw");
+#else
   asm ("ta 3");
 #endif
+#endif
 
   /* Save registers that we need to see on the stack.  We need to see
      registers used to hold register variables and registers used to