From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCEt8-0001Fm-Ir for qemu-devel@nongnu.org; Wed, 21 Aug 2013 16:20:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCEt0-0003rt-5U for qemu-devel@nongnu.org; Wed, 21 Aug 2013 16:20:18 -0400 Received: from mail-gh0-x231.google.com ([2607:f8b0:4002:c05::231]:53742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCEt0-0003rk-0D for qemu-devel@nongnu.org; Wed, 21 Aug 2013 16:20:10 -0400 Received: by mail-gh0-f177.google.com with SMTP id f20so212334ghb.22 for ; Wed, 21 Aug 2013 13:20:09 -0700 (PDT) Sender: Richard Henderson Message-ID: <521520F4.5040201@twiddle.net> Date: Wed, 21 Aug 2013 13:20:04 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1720618.BIM8jcXstt@sven-desktop> In-Reply-To: <1720618.BIM8jcXstt@sven-desktop> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] TCG jumping inside translation block List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Schrober Cc: qemu-devel@nongnu.org On 08/21/2013 06:02 AM, Schrober wrote: > Is qemu just recompiling the block again when it encounters a different entry > point to an already translated block? I am currently starring at the code in > translate-all.c and cpu-exec.c and don't seem to find the right part of the > code which would help to understand this basic concept. At least it seems to > me that labels are not used very often because it ruins the code optimization. The primary misconception here is that each guest insn address can only be part of one host TB. We can and will have 2 TBs for the situation you describe. One for I1-I3, and another for I2-I3. r~