support ymm fields in windows CONTEXT and linux signal structures
From bruen...@google.com on April 20, 2011 11:16:25
split from issue #433 (closed) ymm fields in CONTEXT: several places in the code that save/restore/copy state need to be updated to include ymm state, and many other places need CONTEXT struct to be extended.
from context_to_mcontext(): /* FIXME issue #433 (closed): ymm are inside XSTATE cstruct which should be
- laid out like this: {CONTEXT, CONTEXT_EX, XSTATE}, but
- should read CONTEXT_EX fields to verify.
- All of our CONTEXT structs need to be extended to get
- the extra state.
- XSTATE has xsave format minus first 512 bytes, so ymm0 should
- be at offset 64, but should use LocateXStateFeature() to locate,
- or cpuid to find Ext_Save_Area_2.
- Should be able to eliminate the xmm memcpy calls above and
- replace with a single memcpy here. */
Original issue: http://code.google.com/p/dynamorio/issues/detail?id=437