From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by sourceware.org (Postfix) with ESMTPS id A0100386F827 for ; Sat, 2 May 2020 02:20:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A0100386F827 Received: by mail-pf1-x442.google.com with SMTP id 18so2406493pfv.8 for ; Fri, 01 May 2020 19:20:53 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=8+oJONhUOwiK25SGCCAF3ne9CbXW54Cycx6m6vh6yDE=; b=MB8ZLo8WY9mINz91Sb5qzLHU8rjI4SvQUDZQtponTHiF21LI6k/MWSFbfnCRCFnHQV mvnUigH1c18PrM1CPhj5UeJThlVvNOM+lCrI+6LkYRav8CZ/hJZHNQw/mo17iN8md7J4 Yw6osGLANVU0Fkl6RbQMIyKWADAQQo2MQtveWhAugXGjWKKAgm2EIIPDflPesgBFliI7 /5n60+ZqMcWpoz41T8dmaM5jOquPVtkJp/YTLG/r3upQX528D2XEloKOLFXyiUn4n/tU KAqkVBFLW2chKu/X8keXBag6pAal4IlSMsOIq2ZxiWK3YBIztse457Lx5lHIUmUAt/BG bZsA== X-Gm-Message-State: AGi0PuaXOXJ0r+6Zx/AUoxcbQKltB0ieAVN2mhp8h95mmEHmMb0LKLCn wUz8tnYWOJY6iuEIfLmitWF5D+j2 X-Google-Smtp-Source: APiQypLsQWIAeFPXvr4tuhBqxCBvy+BtSJJNqCDM9ley3E1Gf3yykXUBGBBC+IjwJMkPh++A3KbRag== X-Received: by 2002:a65:6288:: with SMTP id f8mr6691204pgv.118.1588386052477; Fri, 01 May 2020 19:20:52 -0700 (PDT) Received: from localhost (g150.61-115-52.ppp.wakwak.ne.jp. [61.115.52.150]) by smtp.gmail.com with ESMTPSA id t20sm820874pjo.13.2020.05.01.19.20.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 May 2020 19:20:51 -0700 (PDT) From: Stafford Horne To: GNU Binutils Cc: blue@cmd.nu, stefan.kristiansson@saunalahti.fi, Stafford Horne Subject: [PATCH v2 0/2] OpenRISC Remove 64-bit support to fit 32-bit hosts (PR 25184) Date: Sat, 2 May 2020 11:20:39 +0900 Message-Id: <20200502022041.1177-1-shorne@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_2, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2020 02:20:55 -0000 Changes since v1: - Rebased, regenerate and retested The issue was reported by Rich Felker, OpenRISC gas fails to calculate negative offsets when running on 32-bit hosts. I traced this back to having 64-bit address space support in the CPU definitions. It seems we could fix this by either adding some fixes for cgen to support this case or by adding some custom C to do the jump offset calculations. However, realizing that OpenRISC 64-bit support is not tested, not used and no hardware or simulators exist I am deciding removing it is easiest. Stafford Horne (2): or1k: Remove 64-bit support, it's not used and it breaks 32-bit hosts or1k: Regenerate opcodes after removing 32-bit support cpu/or1k.cpu | 35 +- cpu/or1kcommon.cpu | 14 - cpu/or1korfpx.cpu | 64 -- opcodes/or1k-asm.c | 9 - opcodes/or1k-desc.c | 1811 +++++++++++++++++++---------------------- opcodes/or1k-desc.h | 332 ++++---- opcodes/or1k-dis.c | 9 - opcodes/or1k-ibld.c | 62 +- opcodes/or1k-opc.c | 152 ---- opcodes/or1k-opc.h | 28 +- opcodes/or1k-opinst.c | 428 +++++----- 11 files changed, 1186 insertions(+), 1758 deletions(-) -- 2.21.0