From patchwork Mon Feb 15 09:42:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 382901 Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp939092jao; Mon, 15 Feb 2021 01:53:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyc0yjveBhHfK1Px7WxPlu6doobl6zMIdvFHE+kVpxhtWWH4SqxCLBzQ4om9AvWVWuDUkXG X-Received: by 2002:a25:6055:: with SMTP id u82mr21165976ybb.46.1613382796523; Mon, 15 Feb 2021 01:53:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613382796; cv=none; d=google.com; s=arc-20160816; b=bJvYvT8rNcPdQjXIfcCWxp/pupMXurlKxn5oo4hW56fPsIAXTFNHYoRdeeXCksUSGt XYvdbiTnYeAbfLHJxOXrl6nd5AYYQO2PX7LvZ1qLqpsXaziqI3JiBAuGPqfZ2xpFCC+8 IT6+l5qvp7Epvj+1TkG8K/F9LxMDentMzE8qPx5R86aXU3A74LVEoFFsdCW2QFvgDmy+ fHpKtD9+k+j19FTS46Ix91VKekeoGI43oBT042C9SeGGMigykJFPkhc3knozcRWsj9Rw YPR7a31rpcEo3CSBN9NH6hYofchyLzuPwSrYHeLIE2BbxiZSVeiVOLdDQoyhL5CiK6jO NRbg== 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=D3Fr91XJCXcm4d4eYGJnhtw/QeqRtMf5zDy1ilXxRkY=; b=yYIHcacvuHKS+59tVrTzfu3zPI336D5qOTPU/RBshKuHlQ2sJ81TWeN9pixJFHSUJI F5SZto8BuRLNjNGJJdx5g3YexQFSFDGU2RhKdLWr85Q9iUPQRTKW8VXSSmQaMzV2GDww WEzRGlaxxlS5/w62bVD2HjB96bbVKubYPtVtklK+gabpfN57YpBYBtFUi3mUSORXMTtU HEZCkvOj+RlE6vtkWssCDK6bH8yGlqIPLvUV063agFhN4u1NXaMnXhZEV+f1E3X0RS/2 5ZHwZ5x7CE06gYNdrw7T21yQ4YvHdoIwc3ylRV80ekLeQEha0uYYyvDArKzlzXYHQCqA ZQww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=dHCBT2mj; 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=fail (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 k67si18264957ybc.123.2021.02.15.01.53.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Feb 2021 01:53:16 -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=fail header.i=@linaro.org header.s=google header.b=dHCBT2mj; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBaZ9-0001x5-UE for patch@linaro.org; Mon, 15 Feb 2021 04:53:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBaYK-0001vI-Ka for qemu-devel@nongnu.org; Mon, 15 Feb 2021 04:52:25 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:42112) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBaYI-0008AT-W6 for qemu-devel@nongnu.org; Mon, 15 Feb 2021 04:52:24 -0500 Received: by mail-wr1-x429.google.com with SMTP id r21so8082411wrr.9 for ; Mon, 15 Feb 2021 01:52:22 -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=D3Fr91XJCXcm4d4eYGJnhtw/QeqRtMf5zDy1ilXxRkY=; b=dHCBT2mjwKPFBnfX8eoiF7pHHTczI4YKg0EWKV5R0RsiJ+959I27blhR6xCxtCQo5R J27bWg6XYOWkSl+JEr9Qwz7bJUbp7koQJCA9VryaiizzofbaX+Lm0BC82bPnSMzYQmTA byJV2toyeIlEHCfcNurzM3z656aijodH/X24G77dhTgYj7ABxG0xhxoHGOwRJ2126r56 ws87gZlWIZbnQ5sarbCwKii4mF0VmIzISmFe7yJujvjmxiJfwLhur/B5i3JGxsxBQ1C2 671uE+Aesj7zrNC9JOrJ1TAxJG6AaH+LLR/jPQR9rvIB7a/3cVN7Lwi9WFiuKKx/N0/g Q8/A== 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=D3Fr91XJCXcm4d4eYGJnhtw/QeqRtMf5zDy1ilXxRkY=; b=IsLQes64P5bApqJDQEiEW7WPZmvRu7pMXgg+r88Q8RKoFafeWBu+26dcau/XWOzl5R fGRxtdjRL4MDSGa3W9V0uf/x/K4wh1iG4UrtuELlnJvy1QhnoMhpj7zNUGaw+1i9Wz5C 0nEyiBe3SDoul7S1Q3YSwsjtcGJ0An1FPEiKur0bWpahkX0E5oMZgvaMVpM23cydzt0f IxxPeTEka8b09y4CVf4pZOZZnKXkhazRhK2G1+4vXZygomZtcLIrLcPcU818riuCMy/k MJCWAa+zQsYjAyaPx61BNpWdmiT14qdyLWbGL25T3XclRCbtoxQ6YWoqdKRq4FjJhzYM sbnA== X-Gm-Message-State: AOAM532Dc+PGFREfWyqbi4xG9qifXa4X7CVSsgWd0lfEt0uEWyBVJw3n C34MALsNZqQH21WmONP/Qmf1JA== X-Received: by 2002:a05:6000:1806:: with SMTP id m6mr17613800wrh.320.1613382741603; Mon, 15 Feb 2021 01:52:21 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id g18sm4279425wrw.40.2021.02.15.01.52.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 01:52:20 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2F4851FF9C; Mon, 15 Feb 2021 09:42:46 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 13/15] gdbstub: Remove unused gdb_get_float32() and gdb_get_float64() Date: Mon, 15 Feb 2021 09:42:42 +0000 Message-Id: <20210215094244.12716-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210215094244.12716-1-alex.bennee@linaro.org> References: <20210215094244.12716-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x429.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=ham autolearn_force=no X-Spam_action: no action 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: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Peter Maydell The functions gdb_get_float32() and gdb_get_float64() are now unused; remove them. Signed-off-by: Peter Maydell Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20210208113428.7181-5-peter.maydell@linaro.org> Message-Id: <20210211122750.22645-14-alex.bennee@linaro.org> -- 2.20.1 diff --git a/include/exec/gdbstub.h b/include/exec/gdbstub.h index ff0b7bc45e..a024a0350d 100644 --- a/include/exec/gdbstub.h +++ b/include/exec/gdbstub.h @@ -135,26 +135,6 @@ static inline int gdb_get_reg128(GByteArray *buf, uint64_t val_hi, return 16; } -static inline int gdb_get_float32(GByteArray *array, float32 val) -{ - uint8_t buf[sizeof(CPU_FloatU)]; - - stfl_p(buf, val); - g_byte_array_append(array, buf, sizeof(buf)); - - return sizeof(buf); -} - -static inline int gdb_get_float64(GByteArray *array, float64 val) -{ - uint8_t buf[sizeof(CPU_DoubleU)]; - - stfq_p(buf, val); - g_byte_array_append(array, buf, sizeof(buf)); - - return sizeof(buf); -} - static inline int gdb_get_zeroes(GByteArray *array, size_t len) { guint oldlen = array->len;