Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1nyxfz-0003MQ-Gk for mharc-qemu-riscv@gnu.org; Wed, 08 Jun 2022 11:32:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyxfx-0003Lw-Fy for qemu-riscv@nongnu.org; Wed, 08 Jun 2022 11:32:53 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:46661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyxfv-0004E3-RR for qemu-riscv@nongnu.org; Wed, 08 Jun 2022 11:32:53 -0400 Received: by mail-pl1-x62f.google.com with SMTP id d13so2283190plh.13 for ; Wed, 08 Jun 2022 08:32:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language :from:to:references:in-reply-to:content-transfer-encoding; bh=7CZJWvqggkk2uqqiZuFG+w6RRIhJtfgtWWi36sDt+Vc=; b=BT46hp4Y54bKpndAjQBFnNgAyFQSG/ke+MlY1dGhwJcqfH+3VA4KM1J7ulE9+wbct4 WwsHFLu2xHbEm3Qxe/Hhzhy5S/Q7u9/A8EP3wANzmlRPeoAPeqLqH8ysYUK/h5OndSVM n4qvXOb3025f7tChNP/4NCfKP0Q89HqHL+V6evmlsjltcNe5iv5Rj8JxTvGtEx+HEhgI YEj4YY9uK8yAPjvwL9teptA7FVuzndGnY/AwEESWRVwAxBumO+UPeX++EJaWcKJXSc2F 3V4qlqIgrP2AILgQrAFFXl1fB9g85cvOgCAoavJFpVVfdgvL5GLI8u7P2grliGJAx74G WCZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:references:in-reply-to :content-transfer-encoding; bh=7CZJWvqggkk2uqqiZuFG+w6RRIhJtfgtWWi36sDt+Vc=; b=dKsU1hZtoaaf/1cywFGhd7yxPhMuob/Zy9tvANNQ0Ijs5xmldX6KaC3BA+GD02R75o GHmI90eFFfGRExORHwWtJ3XrrHz+UYtZVHyE1XgSFIuUD0pRquftgIcdmc9nf7rZcZQ0 lpmD3H5nsVghHb9dMD4a4dNDwHzHNsuJEK/wjCsO2QfcfrQm/1jLXHi/bsL/cGbDtOfX PkNfOE5Po999T9Iw5RSnAEAm4NnkfeEhXQzoyUAsK9xH5Q3OzxAStPP1FX8FO/xA14aZ +rmMPQyy0e8NooXOCY3iP5iRVPjY+FhhOkoYXPz9R+7OYo3wZp2nsPnDVSWQ2KL6MIxv Rd7g== X-Gm-Message-State: AOAM530421Gy0nCZh4Tg7dzeEyFntoUoBmgyuejSIOo1Qvx0HtvqwQtB mKsucDkJO2zKFqfDmbNL6fHNBg== X-Google-Smtp-Source: ABdhPJwM4Q7uuXlE7u4j1SMpHLS8NBgESgZkLaBTu8IDakCyJ4HjuDcPH6ehKyerVeCLUZgX6jyxyA== X-Received: by 2002:a17:902:cf0f:b0:15a:24e0:d9b0 with SMTP id i15-20020a170902cf0f00b0015a24e0d9b0mr34002854plg.42.1654702369651; Wed, 08 Jun 2022 08:32:49 -0700 (PDT) Received: from ?IPV6:2602:ae:1547:e101:6812:d08e:b22c:43d7? ([2602:ae:1547:e101:6812:d08e:b22c:43d7]) by smtp.gmail.com with ESMTPSA id bi17-20020a056a00311100b0051c31cc3ca7sm4375367pfb.4.2022.06.08.08.32.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Jun 2022 08:32:49 -0700 (PDT) Message-ID: <243be739-c6b7-8baa-af72-cd667b09e302@linaro.org> Date: Wed, 8 Jun 2022 08:32:47 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH 0/3] target/riscv: Fix issue 1060 Content-Language: en-US From: Richard Henderson To: qemu-devel@nongnu.org, Alistair Francis , "qemu-riscv@nongnu.org" , apatel@ventanamicro.com References: <20220604231004.49990-1-richard.henderson@linaro.org> In-Reply-To: <20220604231004.49990-1-richard.henderson@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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, 08 Jun 2022 15:32:53 -0000 I just realized I failed add the proper cc's for this patch set. r~ On 6/4/22 16:10, Richard Henderson wrote: > This issue concerns the value of mtval for illegal > instruction exceptions, and came with a great test case. > The fix is just two lines, in the first patch, but > I noticed some cleanups on the way. > > > r~ > > > Richard Henderson (3): > target/riscv: Set env->bins in gen_exception_illegal > target/riscv: Remove generate_exception_mtval > target/riscv: Minimize the calls to decode_save_opc > > target/riscv/translate.c | 31 +++++------ > .../riscv/insn_trans/trans_privileged.c.inc | 4 ++ > target/riscv/insn_trans/trans_rvh.c.inc | 2 + > target/riscv/insn_trans/trans_rvi.c.inc | 2 + > tests/tcg/riscv64/Makefile.softmmu-target | 21 ++++++++ > tests/tcg/riscv64/issue1060.S | 53 +++++++++++++++++++ > tests/tcg/riscv64/semihost.ld | 21 ++++++++ > 7 files changed, 116 insertions(+), 18 deletions(-) > create mode 100644 tests/tcg/riscv64/Makefile.softmmu-target > create mode 100644 tests/tcg/riscv64/issue1060.S > create mode 100644 tests/tcg/riscv64/semihost.ld >