diff options
author | Bill Wendling <morbo@google.com> | 2020-02-26 01:44:20 -0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-02-28 12:02:58 +0100 |
commit | 31eaca95e90fc4e934aff85a4a476e624c74e2bc (patch) | |
tree | cec39e8b95ad524573889ce5745b9a509c4458de | |
parent | 46cc038c6afb8fb49882a6d34b4d6bd0dc70ab59 (diff) | |
download | kvm-unit-tests-31eaca95e90fc4e934aff85a4a476e624c74e2bc.tar.gz |
x86: emulator: use "SSE2" for the target
The movdqu and movapd instructions are SSE2 instructions. Clang
interprets the __attribute__((target("sse"))) as allowing SSE only
instructions. Using SSE2 instructions cause an error.
Signed-off-by: Bill Wendling <morbo@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | x86/emulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/x86/emulator.c b/x86/emulator.c index 8fe03b8..2990550 100644 --- a/x86/emulator.c +++ b/x86/emulator.c @@ -658,7 +658,7 @@ static bool sseeq(sse_union *v1, sse_union *v2) return ok; } -static __attribute__((target("sse"))) void test_sse(sse_union *mem) +static __attribute__((target("sse2"))) void test_sse(sse_union *mem) { sse_union v; |