Skip to content
Snippets Groups Projects
Commit c623db61 authored by Raymond Toy's avatar Raymond Toy
Browse files

Add the fpu type to kernel.core on x86. Needed to set the fpu_mode

when it's loaded so that the C code knows what to do.  In particular
call_into_lisp needs to know to save the correct fpu state.
parent d9a51ad0
No related branches found
No related tags found
No related merge requests found
......@@ -2925,9 +2925,22 @@
;; Write the Version entry.
;;
(write-long version-entry-type-code)
(write-long 3)
(write-long version)
;; For x86, identify the core as using either x87 or sse2
;; instructions.
(cond ((and (eql (c:backend-fasl-file-implementation c:*backend*)
c:x86-fasl-file-implementation)
(c:backend-featurep :sse2))
(write-long 4)
(write-long version)
;; See the definition of fpu_mode_t in lisp.h for correct
;; values to use here.
(write-long (if (c:backend-featurep :sse2)
2 ; fpu_mode_t = SSE2
1)))
(t
(write-long 3)
(write-long version)))
;; Write the New Directory entry header.
;;
(write-long new-directory-entry-type-code)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment