From nobody Tue Apr 15 03:09:23 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; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1544758790173797.0817689004147; Thu, 13 Dec 2018 19:39:50 -0800 (PST) Received: from localhost ([::1]:59156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXeKB-0007Ex-Ke for importer@patchew.org; Thu, 13 Dec 2018 22:39:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXe0r-0005wb-QA for qemu-devel@nongnu.org; Thu, 13 Dec 2018 22:19:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXe0q-0006oO-UE for qemu-devel@nongnu.org; Thu, 13 Dec 2018 22:19:41 -0500 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]:41268) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gXe0q-0006n9-O0 for qemu-devel@nongnu.org; Thu, 13 Dec 2018 22:19:40 -0500 Received: by mail-oi1-x233.google.com with SMTP id j21so3458577oii.8 for ; Thu, 13 Dec 2018 19:19:40 -0800 (PST) Received: from cloudburst.twiddle.net ([187.217.227.243]) by smtp.gmail.com with ESMTPSA id g138sm2367537oib.26.2018.12.13.19.19.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Dec 2018 19:19:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=b/KrQm54Hq8g9c6ylntqi8uAZ7geEAnFxKWxRn7UGwQ=; b=FyQ/bZLj+HG0z3FYawTDSasyFIQHUV5cDB/UavZLrbNlkWnZ3Q+vmy1ETO7P/zaKA8 JXPt9GEnQx7lxi1/vhR+3JwhB/700sJxra3AhPpNKgqhyq2AuhMPP1PtqMdh1g5Sh5LF l3Q6clYzMb/UcsM6hYCX+JAGd4ktCK6TVbMyE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=b/KrQm54Hq8g9c6ylntqi8uAZ7geEAnFxKWxRn7UGwQ=; b=VR41revAVMQTp3ysAQBdjhtPt0Bf8Dq0ZH+dK/K53IcRJ1R2v6dYFguVArOowVGmCN 4v1K84RnRJNunVKlXl5mIVSY6RriDdKrxRE5QWun3PEzx/2i6bkwKYcDLxjq9maYlO+P AfD74X5w/kHpmi75iQKRnCJ+edwpbC+pORWN3ESonOQqCbl6qfkAKN8Hurqp6CtTOK7v WL3SraAt0FvEaZ1g5bMBz+SwcCKdWl8NKj56Jh/xW+OSf3Gy549yGAIRlbb3Sfbr4Ck3 GXveS3js5dNULzA5lCTaOMcu7oWlUwP2pa5N903hvDIzjubvJvQOpFPmeZbek5syTPKn /E/A== X-Gm-Message-State: AA+aEWaY2uDBUcFT4fQCZXEw8R19WYJpSRvs+IMxTbhPTldf0zTGhCma XSsufVmvZgIk4SVFzD9s8t5hqUbdnT0w+g== X-Google-Smtp-Source: AFSGD/V34BS5E1xEmCdwGnIjCSBVQBasE77vMS6m39BG1GvGGpYn6qa/BD5XUR9uiVz0iRBbPbg5eg== X-Received: by 2002:aca:f0f:: with SMTP id 15mr857719oip.47.1544757579822; Thu, 13 Dec 2018 19:19:39 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 13 Dec 2018 21:19:03 -0600 Message-Id: <20181214031923.29527-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181214031923.29527-1-richard.henderson@linaro.org> References: <20181214031923.29527-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::233 Subject: [Qemu-devel] [PULL 12/32] tcg/i386: Return false on failure from patch_reloc 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: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Reviewed-by: Alex Benn=C3=A9e Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.inc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcg/i386/tcg-target.inc.c b/tcg/i386/tcg-target.inc.c index 5c88f1f36b..28192f4608 100644 --- a/tcg/i386/tcg-target.inc.c +++ b/tcg/i386/tcg-target.inc.c @@ -175,7 +175,7 @@ static bool patch_reloc(tcg_insn_unit *code_ptr, int ty= pe, case R_386_PC32: value -=3D (uintptr_t)code_ptr; if (value !=3D (int32_t)value) { - tcg_abort(); + return false; } /* FALLTHRU */ case R_386_32: @@ -184,7 +184,7 @@ static bool patch_reloc(tcg_insn_unit *code_ptr, int ty= pe, case R_386_PC8: value -=3D (uintptr_t)code_ptr; if (value !=3D (int8_t)value) { - tcg_abort(); + return false; } tcg_patch8(code_ptr, value); break; --=20 2.17.2