[Qemu-devel] [Bug 1832422] [NEW] SSE CMP ops with 8bit immediate throw sigill with oversized byte

2019-06-11 Thread sonicadvan...@gmail.com
Public bug reported: The SSE comparison ops that use an 8bit immediate as a comparison type selector throws a sigill when the immediate is oversized. Test op that I found this on is here `66 0f c2 c0 d1 cmppd xmm0,xmm0,0xd1` According to the x86-64 documentation only bits [2:0] are use

[Qemu-devel] [Bug 1828867] Re: QEmu translation is incorrect when using REX in combination with LAHF/SAHF

2019-05-13 Thread sonicadvan...@gmail.com
Here's also a basic test that can be run on hardware and have rflags and rsp inspected after each instruction just to see how hardware doesn't effect it. ** Attachment added: "a.cpp" https://bugs.launchpad.net/qemu/+bug/1828867/+attachment/5263495/+files/a.cpp -- You received this bug notific

[Qemu-devel] [Bug 1828867] [NEW] QEmu translation is incorrect when using REX in combination with LAHF/SAHF

2019-05-13 Thread sonicadvan...@gmail.com
Public bug reported: When translating code that is using LAHF and SAHF in combination with the REX prefix then qemu translates incorrectly. These two instructions only ever use the AH register. Contrary to other instructions where if you use REX + high bit offsets then it'll pull in rsp and a f