diff options
author | Martin Simmons <martin@lispworks.com> | 2011-06-06 15:49:17 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-06-08 09:04:29 +0100 |
commit | 8001c294f878966c0a9efe2e811d56d3f5a7da69 (patch) | |
tree | 681fdf26ec183b2314fa2bd9187c65f1b3b9a1b3 /Makefile.target | |
parent | 351326a61842f3d4e7ed34d89b7d0f952f0af039 (diff) |
target-i386: Make x86 mfence and lfence illegal without SSE2
While trying to use qemu -cpu pentium3 to test for incorrect uses of certain
SSE2 instructions, I found that QEMU allowed the mfence and lfence
instructions to be executed even though Pentium 3 doesn't support them.
According to the processor specs (and experience on a real Pentium 3), these
instructions are only available with SSE2, but QEMU is checking for SSE. The
check for the related sfence instruction is correct (it works with SSE).
This trival patch fixes the test.
Signed-off-by: Martin Simmons <martin@lispworks.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile.target')
0 files changed, 0 insertions, 0 deletions