From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 1904A385841A; Sat, 5 Nov 2022 03:44:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1904A385841A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667619874; bh=uUPObzLTbHXfBwo0WGR8Rw7m8Q305Fdjjb2gSHU4E0g=; h=From:To:Subject:Date:From; b=a7+3eAWgoM0/BEIue/mCUBJevPDk0f72FGC3nLjK/BrzDpdQNqGQt7FyCRyIshjMN pHXaM510ntGmCP4UG78SpPJQl/0in33F9Ms59jok56aTT9ble57l35EgkYFqdi1blh DavYO+92iA6A3DPmSzcibuHrXANhOnYjRl3fjgI0= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: ppc: delete unused host bitsize settings X-Act-Checkin: binutils-gdb X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: 319e41e83a405bcc975c706faa172a0c2ab63598 X-Git-Newrev: 1b2af6a41e68e6deac7c54183131e01cf34584b5 Message-Id: <20221105034434.1904A385841A@sourceware.org> Date: Sat, 5 Nov 2022 03:44:34 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D1b2af6a41e68= e6deac7c54183131e01cf34584b5 commit 1b2af6a41e68e6deac7c54183131e01cf34584b5 Author: Mike Frysinger Date: Sat Nov 5 09:52:29 2022 +0700 sim: ppc: delete unused host bitsize settings =20 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. Diff: --- 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 b/sim/ppc/configure index c202901dabc..c231e514190 100755 --- a/sim/ppc/configure +++ b/sim/ppc/configure @@ -717,7 +717,6 @@ enable_sim_duplicate enable_sim_filter enable_sim_float enable_sim_hardware -enable_sim_hostbitsize enable_sim_icache enable_sim_jump enable_sim_line_nr @@ -1358,7 +1357,6 @@ Optional Features: --enable-sim-filter=3Drule Specify filter rules. --enable-sim-float Specify whether the target has hard, soft, altivec = or e500 floating point. --enable-sim-hardware=3Dlist Specify the hardware to be included in the= build. - --enable-sim-hostbitsize=3D32|64 Specify host bitsize (32 or 64). --enable-sim-icache=3Dsize Specify instruction-decode cache size and ty= pe. --enable-sim-jump Jump between semantic code (instead of call/return). --enable-sim-line-nr=3Dopts Generate extra CPP code that references sou= rce rather than generated code @@ -3346,19 +3344,6 @@ if test x"$silent" !=3D x"yes"; then fi fi =20 -# Check whether --enable-sim-hostbitsize was given. -if test "${enable_sim_hostbitsize+set}" =3D set; then : - enableval=3D$enable_sim_hostbitsize; case "${enableval}" in - 32|64) sim_hostbitsize=3D"-DWITH_HOST_WORD_BITSIZE=3D$enableval";; - *) as_fn_error $? "\"--enable-sim-hostbitsize was given $enableval. Ex= pected 32 or 64\"" "$LINENO" 5; sim_hostbitsize=3D"";; -esac -if test x"$silent" !=3D x"yes" && test x"$sim_hostbitsize" !=3D x""; then - echo "Setting hostbitsize flags =3D $sim_hostbitsize" 6>&1 -fi -else - sim_hostbitsize=3D"" -fi - =20 # Check whether --enable-sim-icache was given. if test "${enable_sim_icache+set}" =3D set; then : diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac index f26912eacde..3054202dea2 100644 --- a/sim/ppc/configure.ac +++ b/sim/ppc/configure.ac @@ -214,16 +214,6 @@ if test x"$silent" !=3D x"yes"; then echo "Setting hardware to $sim_hw_src, $sim_hw_obj" fi])dnl =20 -AC_ARG_ENABLE(sim-hostbitsize, -[ --enable-sim-hostbitsize=3D32|64 Specify host bitsize (32 or 64).], -[case "${enableval}" in - 32|64) sim_hostbitsize=3D"-DWITH_HOST_WORD_BITSIZE=3D$enableval";; - *) AC_MSG_ERROR("--enable-sim-hostbitsize was given $enableval. Expect= ed 32 or 64"); sim_hostbitsize=3D"";; -esac -if test x"$silent" !=3D x"yes" && test x"$sim_hostbitsize" !=3D x""; then - echo "Setting hostbitsize flags =3D $sim_hostbitsize" 6>&1 -fi],[sim_hostbitsize=3D""])dnl - =20 AC_ARG_ENABLE(sim-icache, [ --enable-sim-icache=3Dsize Specify instruction-decode cache size and t= ype.], diff --git a/sim/ppc/options.c b/sim/ppc/options.c index b74451392b2..8e1c2629940 100644 --- a/sim/ppc/options.c +++ b/sim/ppc/options.c @@ -114,7 +114,6 @@ print_options (void) printf_filtered ("WITH_TARGET_BYTE_ORDER =3D %s\n", options_byte_order= (WITH_TARGET_BYTE_ORDER)); printf_filtered ("WITH_XOR_ENDIAN =3D %d\n", WITH_XOR_ENDIAN); printf_filtered ("WITH_SMP =3D %d\n", WITH_SMP); - printf_filtered ("WITH_HOST_WORD_BITSIZE =3D %d\n", WITH_HOST_WORD_BIT= SIZE); printf_filtered ("WITH_TARGET_WORD_BITSIZE =3D %d\n", WITH_TARGET_WORD_B= ITSIZE); printf_filtered ("WITH_ENVIRONMENT =3D %s\n", options_env(WITH_E= NVIRONMENT)); printf_filtered ("WITH_EVENTS =3D %d\n", WITH_EVENTS); diff --git a/sim/ppc/std-config.h b/sim/ppc/std-config.h index e02d5946a73..d317826ba1d 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 =20 =20 -/* Word size of host/target: +/* Word size of target: =20 - 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 =20 -#ifndef WITH_HOST_WORD_BITSIZE -#define WITH_HOST_WORD_BITSIZE 32 /* 64bit ready? */ -#endif - =20 /* Program environment: