Re: [PATCH v3 2/2] target/i386: Raise #GP on unaligned m128 accesses when required.

2022-09-19 Thread Paolo Bonzini
Hi, I will merge this patch already, but with simpler code that doesn't look at PREFIX_VEX. The changes to the helpers and the addition of the aligned argument help with the new decoder as well, and I will build on top of them in the next submission of the AVX patches. Thanks! Paolo On Sat, Sep

Re: [PATCH v3 2/2] target/i386: Raise #GP on unaligned m128 accesses when required.

2022-09-16 Thread Ricky Zhou
Checking back on the status of patch, I noticed that there are some exciting patches out for AVX support that may conflict with this, though I see that they are still in the RFC phase: https://patchew.org/QEMU/20220911230418.340941-1-pbonz...@redhat.com/ I'm not sure how far away AVX support is fr

[PATCH v3 2/2] target/i386: Raise #GP on unaligned m128 accesses when required.

2022-08-29 Thread Ricky Zhou
Many instructions which load/store 128-bit values are supposed to raise #GP when the memory operand isn't 16-byte aligned. This includes: - Instructions explicitly requiring memory alignment (Exceptions Type 1 in the "AVX and SSE Instruction Exception Specification" section of the SDM) - Le