On 8.01.2025 14:59, Martin Storsjö wrote:
On Mon, 6 Jan 2025, Jacek Caban wrote:


From: Billy Laws <blaw...@gmail.com>

Signed-off-by: Jacek Caban <ja...@codeweavers.com>
---
mingw-w64-headers/include/winnt.h | 128 ++++++++++++++++++++++++++++++
1 file changed, 128 insertions(+)

This is a bit tricky to reference/quote for commenting, when the patch isn't inline...

I presume this struct is meant to alias the amd64 CONTEXT, but with different fields based on how it is used in arm64ec? Up until Pc/Rip, this is straightforward to follow, but the struct for float/xmm is quite hard to see how it maps... Ok, after looking into XMM_SAVE_AREA32 it seems more understandable.


Yes, it's a convenience on ARM64EC that you may reference context with either AMD64 or ARM64 register names (where possible). This essentially applies ARM64EC registers mapping to the context structure, see [1] for details.


Thanks for reviews,

Jacek


[1] https://learn.microsoft.com/en-us/cpp/build/arm64ec-windows-abi-conventions?view=msvc-170#register-mapping-for-integer-registers



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to