From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] Fix host_cpuid() in qemu/qemu-kvm-x86.c Date: Thu, 21 Feb 2008 12:52:42 +0200 Message-ID: <47BD57FA.3080306@qumranet.com> References: <47BD3A73.7040704@qumranet.com> <687DADE2-86A9-460C-A493-6A1315250600@csgraf.de> <0FA4789B-2CC6-4801-B5CB-6EE8E4E136D3@csgraf.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel , Bernhard Kaindl To: Alexander Graf Return-path: In-Reply-To: <0FA4789B-2CC6-4801-B5CB-6EE8E4E136D3@csgraf.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org Alexander Graf wrote: > > This version fixes a wrong identifier (%0 instead of %1) and makes > things work without touching the stack. This works by using %esi as > backup-register for %ebx. It furthermore moves "function" directly to > eax, without relying on gcc optimizations to realize this. > Applied, thanks. Let's see if gcc can handle 4 register constraints + 1 clobber. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/