Received: from eggs.gnu.org ([2001:4830:134:3::10]:49270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZelSf-0004A6-94 for qemu-devel@nongnu.org; Wed, 23 Sep 2015 10:55:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZelSa-0003yC-5T for qemu-devel@nongnu.org; Wed, 23 Sep 2015 10:55:57 -0400 Received: from mail-qg0-f53.google.com ([209.85.192.53]:36680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZelSa-0003xv-1X for qemu-devel@nongnu.org; Wed, 23 Sep 2015 10:55:52 -0400 Received: by qgx61 with SMTP id 61so21163121qgx.3 for ; Wed, 23 Sep 2015 07:55:51 -0700 (PDT) Date: Wed, 23 Sep 2015 10:55:49 -0400 From: Kevin O'Connor Message-ID: <20150923145549.GA29755@morn.lan> References: <1442953507-4074-1-git-send-email-rth@twiddle.net> <1442953507-4074-6-git-send-email-rth@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1442953507-4074-6-git-send-email-rth@twiddle.net> Subject: Re: [Qemu-devel] [PATCH v3 05/25] tcg: Allow extra data to be attached to insn_start List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: peter.maydell@linaro.org, alex.bennee@linaro.org, qemu-devel@nongnu.org, aurelien@aurel32.net On Tue, Sep 22, 2015 at 01:24:47PM -0700, Richard Henderson wrote: > With an eye toward having this data replace the gen_opc_* arrays > that each target collects in order to enable restore_state_from_tb. Hi Richard, Instead of having each architecture front-end determine the constants to be restored on an exception, have you considered having the tcg liveness pass automatically detect them? What I was thinking was if: - each front-end stored each constant on every instruction using regular "movi" ops - tcg_liveness_analysis() tracked which global memory "sync" writes are purely due to an op that can raise an exception - then tcg_liveness_analysis() could remove "movi" instructions with outputs that are needed only during an exception and place the constant directly in the compressed table itself. I'm curious if this was considered and if there is a reason it wouldn't work well. -Kevin