Received: from eggs.gnu.org ([140.186.70.92]:43008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1Kcc-0001zw-JX for qemu-devel@nongnu.org; Wed, 07 Sep 2011 12:05:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1KcW-0007l4-KM for qemu-devel@nongnu.org; Wed, 07 Sep 2011 12:05:06 -0400 Received: from fe01x03-cgp.akado.ru ([77.232.31.164]:54318 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1KcW-0007jk-6t for qemu-devel@nongnu.org; Wed, 07 Sep 2011 12:05:00 -0400 Date: Wed, 7 Sep 2011 20:04:41 +0400 (MSD) From: malc In-Reply-To: Message-ID: References: <4E62E214.4080400@twiddle.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Qemu-devel] TCG sar UB (fwd) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org On Sun, 4 Sep 2011, malc wrote: > On Sun, 4 Sep 2011, Richard Henderson wrote: > > > On 09/03/2011 03:47 PM, malc wrote: > > > Doesn't make much sense to me, guest clearly asked for 0 and not -1, > > > besides -1 violates TCG's sar constraints and PPC obliges by emiting > > > illegal instruction in this case. > > > > The shift that the guest asked for was completely folded away. > > > > The -1 comes from gen_shift_rm_T1 in the computation of the new > > flags value. This could instead be moved inside the test for != 0, > > which is the only place that value is actually used anyway. > > > > Try this. Lightly tested. > > Now i either get hosts illegal instruction or (with logging enabled) a > guest kenrnel panic. Actually i was habitually testing i386-softmmu/qemu.. And after trying the "properly" named binary things do work.. Want to provide a comment so i can push that? [..snip..] -- mailto:av1474@comtv.ru