From patchwork Wed Sep 25 18:45:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 174407 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1021609ill; Wed, 25 Sep 2019 11:52:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqKq8tqPZHXjNoxjIqqqF16oyupIlypcdsrw+kWvU0ac+J1QdcOY0XXbtXRggO5FTYH28A X-Received: by 2002:ac8:5046:: with SMTP id h6mr871852qtm.13.1569437551480; Wed, 25 Sep 2019 11:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569437551; cv=none; d=google.com; s=arc-20160816; b=JI4L40ZlI6v1yM87+9hAl9y0mAO0HZEk/6sxry0x1O5pxjgVkVtDIJ4ky5apuKyNb2 dOnT8xknZxEw9HlqXhNNj1mAxUjNZ0X5B9qUaOBRKJ6S+B1IM9zViBt1QXyyamRlGMUc dJk0SxaKTovkcQQPrpuMfJ8Z/mNIdZdrUWiTr/owW6Ig0Fgyfj9MF7YZpMCJd9E+KHUt 3IzeuLcZ975OGD5AKbCCJ0hZ6mZKiTXDsu+VCvMgMEhW3vyiJobYpZbDTRtuVXnl8TgK jS6JR++cHiXrmsgpmu66PiyMhTsQKHMLUEhzBNzX/EznRDHaxY1pHI+eDSHgRVNnCnWX W8fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=tEvO5tw4/suCh+mwvodKHXWtN16PlVfrxqaiSrTER6g=; b=ha81hlf9JOFZV7R6JR7z5Ry9SL4MPvoTIl1eF7zLyf4ls7zAVyBIIWCOFLy4HGNJ8A V0/CdsmpsY/Bb8DwSxTpvF+EvZFklKmL4o++Hpk93UvLsQx4MYkIW32vY/rMExoexX1s 8rRThHNN3WzIsh3aKLGFbqyjFWKOmGt3Aclq2hr978Ylb2Fz5itSbjFJG1DJeEXKp94N SSDS21opRD9Ihc+Tcz5TOiSKOtZaH5q1amF2dhpfxTDdFDoXLcyX3KkG//X+dJcHtF+T yL62+MDsuKr/9Oqe2M1FNfKpPGmDACWU8efyyqAx827w28kFZqqg67vUQzciYU04rueJ PuNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bbVQHKnF; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id h9si4501471qkm.174.2019.09.25.11.52.31 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Sep 2019 11:52:31 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bbVQHKnF; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDCOs-0006Ef-R1 for patch@linaro.org; Wed, 25 Sep 2019 14:52:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46987) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDCIZ-0001h1-2Y for qemu-devel@nongnu.org; Wed, 25 Sep 2019 14:45:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDCIY-0004EF-25 for qemu-devel@nongnu.org; Wed, 25 Sep 2019 14:45:58 -0400 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:37023) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iDCIX-0004Dr-TD for qemu-devel@nongnu.org; Wed, 25 Sep 2019 14:45:58 -0400 Received: by mail-pf1-x443.google.com with SMTP id y5so4160998pfo.4 for ; Wed, 25 Sep 2019 11:45:57 -0700 (PDT) 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=tEvO5tw4/suCh+mwvodKHXWtN16PlVfrxqaiSrTER6g=; b=bbVQHKnFvAbHmLIb7cT7R+nAFllNJtICyzl/XE6Kih9SFhg6LmnrXZHdgDpICNJbHI TloWJcSxR4kNLINaxiblKd1IWStyQ6vI8fJgLp+SFlLzfDaBFlxR7BQlboBeT3JN5dgw TEe/sBHh6MvVT3ckgmtz+x0vtw6KwOqI3RpIqEvt4ZFQdlKLgkmnfRrVAyX44wbVzxDE sLMHT83TWCCkQxDhWBwLFlNEBH/yT0R7BX/tN8NePh90B1SqVe3kF5RlMetgvsFYmA40 aYQomumq1WLkPSd7VOt+5zo1UAQ6DKePMRkVX7uJatJXdlge+elD78gKjdJnxn7LoQ3u GHpA== 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=tEvO5tw4/suCh+mwvodKHXWtN16PlVfrxqaiSrTER6g=; b=hLLT+9I+4TtVuqGsNnyayjPBHX8zh87nC1MA9P5D64OzgBpnllDrzCkykDchUKOE/O YS9puqkTSfjs/jzBGf9b9S6GT81uDEOU5gzhgjakvHXDLTia77dkJLtWDOc5Hg/uwFRe TPaDi6vNTe8czFjcwDz8hE3irXsvuJswtO3w07x1RpkHijJKug1pkNI6Oz2zNAHNlW+i Fwfo7OP0DlLCTd533pYWon3oYVngB99UoMHmT0COcSPa8lF3CqXW2vYMqJGPEZysi+8U Eg7Iha1MLFDAbeAH+AkhumLF87kgkxcm7wrhOAmO9jrORWTCODmgwmgTY3/lNE5BXoS8 Pj+Q== X-Gm-Message-State: APjAAAXy3ZXXVXWXmCAdvC/uV+iHTUDYRB9JaK22YdP+sKWl330N6ZVW 0iax10qlN/OQDfMBu6rwQWGghJbHU9w= X-Received: by 2002:a62:7ece:: with SMTP id z197mr18817pfc.78.1569437156411; Wed, 25 Sep 2019 11:45:56 -0700 (PDT) Received: from localhost.localdomain ([12.206.46.61]) by smtp.gmail.com with ESMTPSA id l24sm6133229pff.151.2019.09.25.11.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 11:45:55 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 04/16] cputlb: Use qemu_build_not_reached in load/store_helpers Date: Wed, 25 Sep 2019 11:45:36 -0700 Message-Id: <20190925184548.30673-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190925184548.30673-1-richard.henderson@linaro.org> References: <20190925184548.30673-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::443 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Increase the current runtime assert to a compile-time assert. Reviewed-by: David Hildenbrand Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- accel/tcg/cputlb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c index 2222b87764..e31378bce3 100644 --- a/accel/tcg/cputlb.c +++ b/accel/tcg/cputlb.c @@ -1396,7 +1396,7 @@ load_helper(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, res = ldq_le_p(haddr); break; default: - g_assert_not_reached(); + qemu_build_not_reached(); } return res; @@ -1680,8 +1680,7 @@ store_helper(CPUArchState *env, target_ulong addr, uint64_t val, stq_le_p(haddr, val); break; default: - g_assert_not_reached(); - break; + qemu_build_not_reached(); } }