From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akc7A-0001m2-GW for qemu-devel@nongnu.org; Mon, 28 Mar 2016 14:42:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akc77-0001xZ-B9 for qemu-devel@nongnu.org; Mon, 28 Mar 2016 14:42:12 -0400 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:34009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akc77-0001xM-22 for qemu-devel@nongnu.org; Mon, 28 Mar 2016 14:42:09 -0400 Received: by mail-lb0-x233.google.com with SMTP id vo2so34354637lbb.1 for ; Mon, 28 Mar 2016 11:42:08 -0700 (PDT) References: <1458222382-6498-1-git-send-email-sergey.fedorov@linaro.org> <1458222382-6498-5-git-send-email-sergey.fedorov@linaro.org> From: Sergey Fedorov Message-ID: <56F97AFE.2020401@gmail.com> Date: Mon, 28 Mar 2016 21:42:06 +0300 MIME-Version: 1.0 In-Reply-To: <1458222382-6498-5-git-send-email-sergey.fedorov@linaro.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 4/5] tcg: reorder removal from lists in tb_phys_invalidate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: sergey.fedorov@linaro.org, qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , Peter Crosthwaite On 17/03/16 16:46, sergey.fedorov@linaro.org wrote: > First the translation block is invalidated, for which a simple write > to tb->pc is enough. This means that cpu-exec will not pick up anymore > the block, though it may still execute it through chained jumps. This > also replaces the NULLing out of the pointer in the CPUs' local cache. Although, using 'tb->pc' to mark a TB as invalid is probably not such a good idea. There may be some cases when PC could become equal to -1. For example, ARMv6-M uses PC >= 0xFFFFFFF0 to perform exception return. So we'd better introduce a separate 'tb->valid' or 'tb->invalid' flag. Kind regards, Sergey