Received: from eggs.gnu.org ([140.186.70.92]:37448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTwmG-000251-9P for qemu-devel@nongnu.org; Tue, 07 Jun 2011 09:57:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTwm9-0002uq-Ns for qemu-devel@nongnu.org; Tue, 07 Jun 2011 09:57:03 -0400 Date: Tue, 7 Jun 2011 14:56:51 +0100 From: Stefan Hajnoczi Message-ID: <20110607135651.GD1493@stefanha-thinkpad.localdomain> References: <201106061449.p56EnHo1021674@carson.cam.lispworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201106061449.p56EnHo1021674@carson.cam.lispworks.com> Subject: Re: [Qemu-devel] [PATCH] Make x86 mfence and lfence illegal without SSE2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Martin Simmons Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org On Mon, Jun 06, 2011 at 03:49:17PM +0100, Martin Simmons wrote: > Hi, > > 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 Thanks, applied to the trivial patches tree: http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches Stefan