patchGNU Autoconf Archive - Patches: patch #8730, Fixes for AX_EXT /...

 
 

patch #8730: Fixes for AX_EXT / AX_GCC_X86_AVX_XGETBV / AX_GCC_X86_CPUID

Submitter:  Michael Petch <mdpetch>
Submitted:  Thu 27 Aug 2015 12:50:41 AM UTC
   
 
Priority:  7 - High Status:  Done
Assigned to:  simons Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 03 Sep 2015 09:09:12 PM UTC, comment #2: 
Peter Simons <simons>
Group administrator
Thu 27 Aug 2015 04:53:22 AM UTC, comment #1: 

Please use the attached replacement patch file (file #34751). This is a version that reduces some duplication in ax_gcc_x86_cpuid.m4 and a bit of cleanup in ax_ext.m4 .

If there was a way to delete an attachment I would have ;-)

Michael Petch <mdpetch>
Thu 27 Aug 2015 12:50:41 AM UTC, original submission:  

An issue was discovered when CPUID was 0x07. the returned values (eax,ebx,ecx,edx) always returned 0 even on newer processors. Some of the CPUID categories (including 0x07) now require ECX to be set with a count value prior to executing CPUID.

Resolved this (and other cleanup) by adding a new function AX_GCC_X86_CPUID_COUNT(OP, COUNT); modify AX_EXT to call this new function; and explicitly set ECX to 0 when someone calls AX_GCC_X86_CPUID; make sure that all the _asm_ instructions include _volatile_ to be on the safe side.

The included patch can be applied to the latest versions in git.

Michael Petch <mdpetch>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #34751:  ax_ext_related_fixes.patch added by mdpetch (4KiB - application/octet-stream - Replacement Patch to resolve a CPUID category of 0x07 + cleanup)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by simons (Posted a comment)
  • -email is unavailable- added by simons
  • -email is unavailable- added by simons
  • -email is unavailable- added by mdpetch (Submitted the item)
  •  

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-25 simons StatusReady For Test Done
        Open/ClosedOpen Closed
    2015-09-03 simons StatusNone Ready For Test
        Assigned toNone simons
        Carbon-Copy- Added christophe tournayre <turn3r@users.sourceforge.net>
        Carbon-Copy- Added steven g. johnson <stevenj@alum.mit.edu>
    2015-09-03 simons Attached File#34749 Removed
    2015-08-27 mdpetch Attached File- Added ax_ext_related_fixes.patch, #34751
    2015-08-27 mdpetch Attached File- Added ax_ext_related_fixes.patch, #34749

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code