From patchwork Tue Jan 21 14:23:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 858956 Delivered-To: patch@linaro.org Received: by 2002:adf:fb47:0:b0:385:e875:8a9e with SMTP id c7csp222054wrs; Tue, 21 Jan 2025 06:27:03 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCURRrdtLWqqinwEqLtsKsHWG3j/T0lgrJ07wYASuM8P5utkxK7/pH1Se51iq1eoz7swevPmfQ==@linaro.org X-Google-Smtp-Source: AGHT+IFTWawLiu52qqUiqLQzDWARH5UOZT2JXc6/EVmzLbA5DwvOqTvpJlsHnzWIiw80unLA2+V+ X-Received: by 2002:ac8:5711:0:b0:467:630d:85ef with SMTP id d75a77b69052e-46e12b68a1fmr248119601cf.41.1737469622880; Tue, 21 Jan 2025 06:27:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737469622; cv=none; d=google.com; s=arc-20240605; b=eLHoMX7haGhDvQtdqDbuw9BLfSPpzM6o7w24ZT1KI7t3w4LrR+5dHbPbNiv8G7dmqo I6YtdbtEWPH8cWNQLmQ70y0HCqISlsaurjpFo6RmYKY/f1Al7F0DJlODdFqfnlapnPby MOus1vyrh9GK95uTLjhr56GZb4uTKcVCv0XzGGU4zZv2V/JCOIciFSIdX7up8buWsn3J UvwgQ1DZkl2sBAQOUGQZ/qcplw1eYGNMkiTJNGRoPGPIuVFO3MUqwryzzAUC25yZGn3p FERRwzXm7RRtnRkd6vWOnNg0h1OAeGAOTJ2BWvyX2+wi+4tl8h94cgWg/rf7OcRTRLd3 9rPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=6hABGcPHmiijhFm7hjFblq4xQHOf2UnsfnjVyHAHFsw=; fh=T9nLPmYdz8kSl8qI33evWuh/VVTqN+U2Q3T/ETy8raQ=; b=PaUEZTTaJeB9VW3tyFdMPUfmNeBu8/FdmIBCY5p4+3id63iYlyqWvLQ2IqFUni0tHU s7pJg0ZjwEoxOVAGG+sJ3nhLR4eG+36XYkV+ODlVRLY1NmG7beg9jou7uDANaEX4Ymkt S5Oao+YMpYhz4sucT3diRe+8ELjYArXko7yLawKrN3M1b18hWzrHBLEeIR3En6VvC/mO Fqh0BtflDKzcDa3/bYvcPTBoVm6aXcTsNdwiO9uJdzGEbqm1T1o0wxszY/HK0M0Vqp64 1CTzyTivjBj3XAc0F541azyv2o4D99sCpKWO4/xdtYEmUAFHLWb8M9NrbVEaEajkZbFu SFUg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hevhkfgq; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-46e1043d9d5si123443311cf.363.2025.01.21.06.27.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Jan 2025 06:27:02 -0800 (PST) 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=Hevhkfgq; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1taFBJ-0000uq-Ui; Tue, 21 Jan 2025 09:24:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1taFBI-0000rI-Eq for qemu-devel@nongnu.org; Tue, 21 Jan 2025 09:24:40 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1taFBG-0003BH-2E for qemu-devel@nongnu.org; Tue, 21 Jan 2025 09:24:40 -0500 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-38632b8ae71so4645786f8f.0 for ; Tue, 21 Jan 2025 06:24:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737469476; x=1738074276; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6hABGcPHmiijhFm7hjFblq4xQHOf2UnsfnjVyHAHFsw=; b=HevhkfgqFto4/R5hN1Lhk7bFrknBJ/L9gEgDZ+x43RGYI4R8VhjT+MHdAYd5yIrk/w r//GA3F7IUyqWcrXciPS7yU5Qs8ajcfgjRTfCuC0K2j6L1ThYprNF6uId/+INJg5y3ax n30nobJdQ1lBRM64aHdpxSNVOc0nXTmmsWVixOMWOUiRkiBXkwNU+6VMyPVkDeXR8yNP By23wmbvqIDKXABhrG/u0X//zLPtLJ6Gt90Il1Zm+l4syATLCKpCm9nxWnQYgec3q7kl 2/KwS9d4sblBav+XEtIktjV5Tkb79z9ek9lyc75+ttzYgdoOYVV5W+vm1cJPWgfXXF+7 jaXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737469476; x=1738074276; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6hABGcPHmiijhFm7hjFblq4xQHOf2UnsfnjVyHAHFsw=; b=Rq4xqJxuapDwLKuw5tHBPVP56NpJfxA9qUATOpA9n7xqiVRQh+stCm6taqXzm6ckND 2EH/nHe9QtR69wkyqqCLBvF9iDulj2P862B/Tb9UVhWA69PpAw504trMXMUt0Cge2x6m gyXlZ0ulou2hZJhM6ucjgfs2mNim07m7HQV71TX2CQoqVglg4/LEp1YpsD5r/Y4I4YtB 14m3HbbDTEhx9Z4KPRDPjQDyJh5Fb2qdryE/0bcYnrSJ63mDdUnMbLhI38SC522P5bLr giprqS9fU4tgDB6kNVuJo86QJtiUeyWE4XeWDD/ZpzP5Z4lz1gU8x2gUVmf29Ww260iC JD9w== X-Gm-Message-State: AOJu0Yy32hl5zRD/Sue6W9tGfLvm8r3NZDyepQ1CzDP8HJ5L1q6QrPsN aEyWLG1METfiB/rD2muEO1n5kwSvhuaQNE355cKdMpv0P03Ahkit93RLBo9NvXs/RdlZhwEki2B 5WM4= X-Gm-Gg: ASbGncvdJ/TdXKfjnKYRYzkHy0c81p6Z70FqQYTT1hhI9gJXmci25CLSNqdZ4GWKUK7 keEqZgRnEwZR11w0EvV5DKJv+TjT8STfToJa7QRwmvlIkfDVSka3aF7tzYsvuHHUqkpejY2TSX6 sNHbzDlWQC8cyOJ/G2UOuuh5HTjajPDWyOQ+nLOJpLZdNUJpqqRCKLmHAdB5/EU6BEzc0U6kdk8 n0kIqAh1R+auHJK/ykXg7MRkL7AYg+aGsu3Qz7rNRJwj1s58VGyAqGmm742l9HdCUORgiTis+2k qDm9V4wtW8cTw2gJcJ9mpx9f6/MWFhQIqazONW96ib8l X-Received: by 2002:a5d:4845:0:b0:386:857:cc54 with SMTP id ffacd0b85a97d-38bf5679b17mr12220038f8f.9.1737469476324; Tue, 21 Jan 2025 06:24:36 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38bf327556dsm13492289f8f.71.2025.01.21.06.24.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 21 Jan 2025 06:24:35 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, qemu-ppc@nongnu.org, Paolo Bonzini , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [PATCH 11/28] target/hexagon: Remove CPUClass:has_work() handler Date: Tue, 21 Jan 2025 15:23:24 +0100 Message-ID: <20250121142341.17001-12-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250121142341.17001-1-philmd@linaro.org> References: <20250121142341.17001-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=philmd@linaro.org; helo=mail-wr1-x42a.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Remove as unreachable code. Signed-off-by: Philippe Mathieu-Daudé --- target/hexagon/cpu.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/target/hexagon/cpu.c b/target/hexagon/cpu.c index 0b7fc98f6ce..f77e305d611 100644 --- a/target/hexagon/cpu.c +++ b/target/hexagon/cpu.c @@ -262,11 +262,6 @@ static void hexagon_cpu_synchronize_from_tb(CPUState *cs, cpu_env(cs)->gpr[HEX_REG_PC] = tb->pc; } -static bool hexagon_cpu_has_work(CPUState *cs) -{ - return true; -} - static void hexagon_restore_state_to_opc(CPUState *cs, const TranslationBlock *tb, const uint64_t *data) @@ -345,7 +340,6 @@ static void hexagon_cpu_class_init(ObjectClass *c, void *data) &mcc->parent_phases); cc->class_by_name = hexagon_cpu_class_by_name; - cc->has_work = hexagon_cpu_has_work; cc->dump_state = hexagon_dump_state; cc->set_pc = hexagon_cpu_set_pc; cc->get_pc = hexagon_cpu_get_pc;