From nobody Tue Oct 28 23:05:08 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1513357929687663.723628607571; Fri, 15 Dec 2017 09:12:09 -0800 (PST) Received: from localhost ([::1]:47799 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePtWZ-0004dF-Pz for importer@patchew.org; Fri, 15 Dec 2017 12:11:51 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePtSX-0001Rh-RI for qemu-devel@nongnu.org; Fri, 15 Dec 2017 12:07:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePtSX-0002t0-0F for qemu-devel@nongnu.org; Fri, 15 Dec 2017 12:07:41 -0500 Received: from mail-it0-x243.google.com ([2607:f8b0:4001:c0b::243]:46709) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePtSW-0002sp-SO for qemu-devel@nongnu.org; Fri, 15 Dec 2017 12:07:40 -0500 Received: by mail-it0-x243.google.com with SMTP id t1so21004808ite.5 for ; Fri, 15 Dec 2017 09:07:40 -0800 (PST) Received: from cloudburst.twiddle.net (141-126-166-226.dhcp.chtrptr.net. [141.126.166.226]) by smtp.gmail.com with ESMTPSA id k23sm4012974iti.22.2017.12.15.09.07.38 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Dec 2017 09:07:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=duqz0zTygyg/WZ14UBKd2/c6PKeoS+BjyHmQuSaknYk=; b=EutE1jq0VyBUcIJ/vJiSFVyTZr8DDYZxmU3mO37+k1EHRsdtwFHYHutwnbRtu2FyyZ PjA45A82kaW4ZYmrg8qIZQxS8bQ/DIyBxXKy2UVBJQNUefh+z3NJsCC73ypkEzrcDfM6 wXA32KkTzwQoOMkIZnCzZf4Dmuzcgjx12SJVE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=duqz0zTygyg/WZ14UBKd2/c6PKeoS+BjyHmQuSaknYk=; b=AFXwAVZZKSLKXMpNr9Gy4tjHU6kTz06b9FxyG94pxwLJ/HE3rO/jsAEuBJm1v5ONSY x7UZtoSRIhKNNiVHQ5IubnIB3QpZyBMZRPmB1kk/SfEht3glMJriXqTlEhNld7UR4+ig OtX4ES+jpj+1t//aFfgVmp1A0taklag2+jVps+jXINRecXdfb9ceonvRhcuykh6sxpVq 1CAmsn/Y0Vu3p0dfzKubmlT2+kFuT2oH1y9AullIh2DPPpcbthTi3k4+P+XOLQuAqIb5 Mt4e2x9sCSw+dXlRP0rrZo3YmL97sM8q2ROJk1nUFdziRu159C08WQe267BJ5i0nJeBf MO9w== X-Gm-Message-State: AKGB3mJvyqqo8k4/1QBFkzhBXcP9NmPb74sUccTKrtEp9Ce+oJn0IIHK KKVdiMDQ8e8Hkvy5rJBScjSxxaXlRas= X-Google-Smtp-Source: ACJfBotVsGnn4+5fGbXM286gl6T1WGsZGSGz/iIwTsTMCiBAJCnac0VGMZnBtz07r+4c9VGELGjmJQ== X-Received: by 10.36.135.5 with SMTP id f5mr9675542ite.85.1513357660046; Fri, 15 Dec 2017 09:07:40 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 15 Dec 2017 11:07:27 -0600 Message-Id: <20171215170732.31125-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171215170732.31125-1-richard.henderson@linaro.org> References: <20171215170732.31125-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::243 Subject: [Qemu-devel] [PATCH 2/7] target/moxie: Fix tlb_fill X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" We should not exit unless moxie_cpu_handle_mmu_fault has failed. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/moxie/helper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/moxie/helper.c b/target/moxie/helper.c index 2ecee89f11..6890ffd71c 100644 --- a/target/moxie/helper.c +++ b/target/moxie/helper.c @@ -36,9 +36,8 @@ void tlb_fill(CPUState *cs, target_ulong addr, MMUAccessT= ype access_type, =20 ret =3D moxie_cpu_handle_mmu_fault(cs, addr, access_type, mmu_idx); if (unlikely(ret)) { - cpu_restore_state(cs, retaddr); + cpu_loop_exit_restore(cs, retaddr); } - cpu_loop_exit(cs); } =20 void helper_raise_exception(CPUMoxieState *env, int ex) --=20 2.14.3