From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mkopH-0004vU-Le for mharc-qemu-riscv@gnu.org; Wed, 10 Nov 2021 09:43:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkopG-0004tZ-0t for qemu-riscv@nongnu.org; Wed, 10 Nov 2021 09:43:46 -0500 Received: from [2a00:1450:4864:20::42e] (port=43573 helo=mail-wr1-x42e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkopD-0006iI-BM for qemu-riscv@nongnu.org; Wed, 10 Nov 2021 09:43:45 -0500 Received: by mail-wr1-x42e.google.com with SMTP id t30so4404124wra.10 for ; Wed, 10 Nov 2021 06:43:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=k5xeZMA4nD8SR8uZ1oNgkVFfUpYW4cpJpvhQfqCyHkg=; b=hrhpG75vPx1EeNv8NTXMhs4BCNSXQWu2dsvXqEdrYwRpjQh0VleHUPT6lBM3lOvy3r 0SxaD8B/C9SJWCfcFyTthK4b/GWBbj0fRq66+GN4uReCtYFBa5IpjnnsxhvbeezDJPw3 FKoGNdE1tcihzmCProMLQzGR94YGl8e/Y7warBlmlxDjWJV/tzpfb88FUIVuIyUyPO6S nK6wWg9blfQucaKD2wh4u5oEMMZjN679it1hiEfWBz/uP8MkG5yY/jIAoN67v960RizS wqFYD8eWqLsoGOkZN3H2lvQBV6AXPOUEqI2qB5XXvokYSJG8W834LQPdzSp2YVJADSwN Dk0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=k5xeZMA4nD8SR8uZ1oNgkVFfUpYW4cpJpvhQfqCyHkg=; b=XcnVwNt9juXfV9S0ihpkQoPxy3KvLGwdGmY6WuixOpXTjBkJpDKeigbPCVU4SgBT7Q IKwt92V3aWyelwJbORZy1KP+RvhQwcGyktjU0RJCHdmrJnEzwbkPhCmCU9CON0BIMdpm 90q2z7RNGZJJzydbu5DOYbNYP971Zj+quFQDXleNfUp0p1wEBEtyDDQa5M8U6gRiChkI Jco/wBkLbLvM6K+uYlVqfPUc0+ofyRndvjEqt7f+ICT2FKRTFmj3APFtl9TvaovXVjFu 0j60xM39bDTjywoqCp2PReMcNGnyfUUz5lfw+wXvQPaZwjbpA/4jU//+Gdydtd2SMeN9 q0Mw== X-Gm-Message-State: AOAM532rEjs6c+whg7PwkXNTiNllN8YUEj+t+VZ/yS+ia6twrCu2fYfV UdKW57oWL3nCL5Y4nKp9yKWrNA== X-Google-Smtp-Source: ABdhPJwv5ZaK34eMni7tg+F5WyIL3O5TeBpwZfhgAfaDHJWvVtas2JF8f8ChO5h/NOVL7VX6d4XG7A== X-Received: by 2002:adf:cc8d:: with SMTP id p13mr311547wrj.274.1636555421514; Wed, 10 Nov 2021 06:43:41 -0800 (PST) Received: from [192.168.8.106] (104.red-2-142-241.dynamicip.rima-tde.net. [2.142.241.104]) by smtp.gmail.com with ESMTPSA id m2sm5809484wml.15.2021.11.10.06.43.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Nov 2021 06:43:41 -0800 (PST) Subject: Re: [PATCH v2 10/14] target/riscv: Adjust vector address with mask To: LIU Zhiwei , qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: Alistair.Francis@wdc.com, palmer@dabbelt.com, bin.meng@windriver.com References: <20211110070452.48539-1-zhiwei_liu@c-sky.com> <20211110070452.48539-11-zhiwei_liu@c-sky.com> <30642177-1f52-08fb-c3ed-77492fdc7cc8@linaro.org> From: Richard Henderson Message-ID: <0400a881-0084-e65e-ae59-2734a6ea97d1@linaro.org> Date: Wed, 10 Nov 2021 15:43:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42e (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x42e.google.com X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-1.678, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2021 14:43:46 -0000 On 11/10/21 3:08 PM, LIU Zhiwei wrote: >> You'll want to update the translator to use these new fields instead of using the >> [msu]pmmask / [msu]pmbase fields directly. (Which means that we will have fewer tcg >> variables, and need not copy the "current" into DisasContext.) >> > Do you mean we can remove the global TCG variables pm_mask[] and pc_base[]? > If then how to transport env->cur_pmmask and env->cur_pmbase to DisasContext? I mean replace the array of pm_mask/pm_base with scalar variables. Remove the cached array value in DisasContext, and use global variables for the tcg variables like we do for everything else. r~