From patchwork Sat Nov 5 03:45:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 59980 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 65BDA3858424 for ; Sat, 5 Nov 2022 03:45:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 65BDA3858424 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667619953; bh=BpGgZ05b7HYpA8eg0U9diPJ9RgU1C1e/7tIVaiOPW38=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=GBvmRMxUxwhwMQxAqJ4Frw/3BTikRwSTcRiEL7Fuo2UskkOk20J3Bo0GERSmRETRo 3ivFZpnIKjN7bWyv2ue9BydXXdobrzHJFumzfNrxs/eYKipFP5na9N9RNVbDyCLU7J MnS7FhTk+5S8EfxEQofHuNTtcXw1w9gNdjp+ua3E= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 004003858C2B for ; Sat, 5 Nov 2022 03:45:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 004003858C2B Received: by smtp.gentoo.org (Postfix, from userid 559) id A3D32340970; Sat, 5 Nov 2022 03:45:30 +0000 (UTC) To: gdb-patches@sourceware.org Subject: [PATCH] sim: ppc: delete unused host bitsize settings Date: Sat, 5 Nov 2022 10:45:27 +0700 Message-Id: <20221105034527.32759-1-vapier@gentoo.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Mike Frysinger via Gdb-patches From: Mike Frysinger Reply-To: Mike Frysinger Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" Nothing checks this define anywhere, so drop all the logic. We don't want this to be a configure option in the first place as all such usage should be automatic & following proper types. --- sim/ppc/configure | 15 --------------- sim/ppc/configure.ac | 10 ---------- sim/ppc/options.c | 1 - sim/ppc/std-config.h | 8 ++------ 4 files changed, 2 insertions(+), 32 deletions(-) diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac index f26912eacde0..3054202dea20 100644 --- a/sim/ppc/configure.ac +++ b/sim/ppc/configure.ac @@ -214,16 +214,6 @@ if test x"$silent" != x"yes"; then echo "Setting hardware to $sim_hw_src, $sim_hw_obj" fi])dnl -AC_ARG_ENABLE(sim-hostbitsize, -[ --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64).], -[case "${enableval}" in - 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";; - *) AC_MSG_ERROR("--enable-sim-hostbitsize was given $enableval. Expected 32 or 64"); sim_hostbitsize="";; -esac -if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then - echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1 -fi],[sim_hostbitsize=""])dnl - AC_ARG_ENABLE(sim-icache, [ --enable-sim-icache=size Specify instruction-decode cache size and type.], diff --git a/sim/ppc/options.c b/sim/ppc/options.c index b74451392b27..8e1c2629940a 100644 --- a/sim/ppc/options.c +++ b/sim/ppc/options.c @@ -114,7 +114,6 @@ print_options (void) printf_filtered ("WITH_TARGET_BYTE_ORDER = %s\n", options_byte_order (WITH_TARGET_BYTE_ORDER)); printf_filtered ("WITH_XOR_ENDIAN = %d\n", WITH_XOR_ENDIAN); printf_filtered ("WITH_SMP = %d\n", WITH_SMP); - printf_filtered ("WITH_HOST_WORD_BITSIZE = %d\n", WITH_HOST_WORD_BITSIZE); printf_filtered ("WITH_TARGET_WORD_BITSIZE = %d\n", WITH_TARGET_WORD_BITSIZE); printf_filtered ("WITH_ENVIRONMENT = %s\n", options_env(WITH_ENVIRONMENT)); printf_filtered ("WITH_EVENTS = %d\n", WITH_EVENTS); diff --git a/sim/ppc/std-config.h b/sim/ppc/std-config.h index e02d5946a734..d317826ba1d4 100644 --- a/sim/ppc/std-config.h +++ b/sim/ppc/std-config.h @@ -79,9 +79,9 @@ extern enum bfd_endian current_target_byte_order; #endif -/* Word size of host/target: +/* Word size of target: - Set these according to your host and target requirements. At this + Set these according to your target requirements. At this point in time, I've only compiled (not run) for a 64bit and never built for a 64bit host. This will always remain a compile time option */ @@ -90,10 +90,6 @@ extern enum bfd_endian current_target_byte_order; #define WITH_TARGET_WORD_BITSIZE 32 /* compiled only */ #endif -#ifndef WITH_HOST_WORD_BITSIZE -#define WITH_HOST_WORD_BITSIZE 32 /* 64bit ready? */ -#endif - /* Program environment: