Adds a drx restore event that will eventually handle fixing AVX-512 gather, AVX-512 scatter and AVX2 gather emulation sequence application state.
This patch adds drx support to detect and restore the scratch mask as well as the destination mask state in the AVX-512 gather emulation sequence. This is necessary if a translation event hits the AVX-512 gather emulation sequence in certain parts of the emulation code. Detection is done by a state machine that attempts to match a known pattern of the emulation sequence.
AVX-512 scatter and AVX2 gather is not yet supported.
Removes the relevant errors from client.drx-scattergather.
Issue: #2985 (closed)