Skip to content

Update Linux/Mac Context State for AVX512 #81846

@anthonycanino

Description

@anthonycanino

As part of the changes introduced in #79544 , with respect to adding AVX512 upper SIMD registers: we commented that there will need to be some additional changes for Mac and Linux

"It looks like on Linux (and Mac?) we'll need additional updates in src\coreclr\pal\src\thread\context.cpp, specifically CONTEXTFromNativeContext, CONTEXTToNativeContext, as well as FPREG_HasYmmRegisters() (need a FPREG_HasZmmRegisters()?) and audit other places where CONTEXT_XSTATE is used and is storing 16 registers, 16 bytes each. So it looks like they would need updating to save/restore kmask, the high 16 bytes of zmm0-zmm15 and all of zmm16-zmm31."

Issue is to track work to do this with a follow up PR. Please add the AVX512 tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions