Raymond Toy pushed to branch issue-86-save-fpu-state-on-entry-to-alloc at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • src/lisp/x86-assem.S
    ... ... @@ -381,28 +381,6 @@ ENDFUNC(fastcopy16)
    381 381
      * On exit:
    
    382 382
      * %eax = address
    
    383 383
      */
    
    384
    -#if 0
    
    385
    -FUNCDEF(alloc_overflow_sse2)
    
    386
    -	STACK_PROLOGUE(20)
    
    387
    -	movl	%ecx, 8(%esp)	# Save ecx and edx registers
    
    388
    -	movl	%edx, 4(%esp)
    
    389
    -	stmxcsr 12(%esp)	# Save MXCSR
    
    390
    -	/* Clear the exceptions that might have occurred */
    
    391
    -	movl	12(%esp), %edx
    
    392
    -	and	$-64, %edx	# Clear the exceptions
    
    393
    -	movl	%edx, 16(%esp)
    
    394
    -	ldmxcsr 16(%esp)	# Get new mxcsr value
    
    395
    -	movl	%eax, (%esp)	# Put size on stack for first arg to alloc()
    
    396
    -
    
    397
    -	call	GNAME(alloc)
    
    398
    -
    
    399
    -	movl	4(%esp), %edx	# Restore edx and ecx registers.  eax has the return value.
    
    400
    -	movl	8(%esp), %ecx
    
    401
    -	ldmxcsr	12(%esp)
    
    402
    -	STACK_EPILOGUE
    
    403
    -	ret
    
    404
    -ENDFUNC(alloc_overflow_sse2)	
    
    405
    -#else
    
    406 384
     FUNCDEF(alloc_overflow_sse2)
    
    407 385
     	# Need 8*16 bytes for the xmm registers, and space to save ecx
    
    408 386
     	# and edx, space for mxcsr, a temp, and one arg to pass to alloc.
    
    ... ... @@ -465,7 +443,6 @@ FUNCDEF(alloc_overflow_sse2)
    465 443
     	STACK_EPILOGUE
    
    466 444
     	ret
    
    467 445
     ENDFUNC(alloc_overflow_sse2)	
    
    468
    -#endif		
    
    469 446
     
    
    470 447
     #ifdef LINKAGE_TABLE
    
    471 448