From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by sourceware.org (Postfix) with ESMTPS id 3CA6F3857409; Wed, 11 May 2022 17:59:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3CA6F3857409 Received: by mail-ej1-x62c.google.com with SMTP id l18so5597944ejc.7; Wed, 11 May 2022 10:59:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=mkag1xznH2FV7a+I6GpgFEifC+XIlioh+nYvHaIFl9o=; b=UBye+EV0XVSlBA6AEnJkIKIkDzdGtEcztSxdLh+Uzlvd7NiIlq5m6+1Z2A9yA8qo4x HITfnNVrpnpnWPDxLJD2l9bep+JwrY6AsCP9wLNvn1QhZKkVtZhlLiH73gKospcM4MlV QbiOvGmFiowPaWMXCq3ilQU7pqUXmozQQuSb7I7WCQBwNvQJE926oedNTDRa/Q+ftj/j RYg7RAQ1qfeLk7d+giw54pqOigt3fm/ELQ29wD9C5iEkTHoDVfztNCgu4CWq6lhCXscs QCFPukZPqkyzx/gxSMEk7IE/9xJnOY5hPh+xUNJULQVkyuw7gx9i/ARlbi1qXLfWDCTY Zg7w== X-Gm-Message-State: AOAM532SX2YJaexgU7xVtHE0xlPAnFwLjAt+x3jZK5H2EOmmbNqAEgcC 8iyCqCbJGCq2gYUDR684tAduDyA/OmwaGMxcJKIcIEaoEDiTSw== X-Google-Smtp-Source: ABdhPJyh14Joy1albTUUrwvvIwpqtXIZ1+DFuKYat5fUtVsNnSI8e7enXHMAR+ucjOdPNZIl/Oou+5C7HPM6pq/X3pA= X-Received: by 2002:a17:906:9748:b0:6fa:8c68:af0e with SMTP id o8-20020a170906974800b006fa8c68af0emr13488225ejy.153.1652291988648; Wed, 11 May 2022 10:59:48 -0700 (PDT) MIME-Version: 1.0 From: Dmitry Selyutin Date: Wed, 11 May 2022 20:59:12 +0300 Message-ID: Subject: [PATCH 0/2] extend opindex and fx_pcrel_adjust to 16 bits To: binutils@sourceware.org Cc: gdb-patches@sourceware.org, Alan Modra , Luke Kenneth Casson Leighton Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Wed, 11 May 2022 17:59:52 -0000 With the upcoming SVP64 extension[0] to PowerPC architecture, it became evident that PowerPC operand indices no longer fit 8 bits. These patches extend both the operand index and the dependent fx_pcrel_adjust field to 16 bits. This issue has been discussed in binutils mailing list[1]; I've added gdb-patches mailing list as well, per MAINTAINERS file instructions, since I'm unsure if this can break the gdb interface. You can also find these patches in perhaps a more convenient form in the libresoc fork of binutils repository[2] (branch fx_pcrel_adjust). [0] https://libre-soc.org [1] https://sourceware.org/pipermail/binutils/2022-May/120775.html [2] https://git.libre-soc.org/?p=binutils-gdb.git;a=log;h=refs/heads/fx_pcrel_adjust Dmitry Selyutin (2): ppc: extend opindex to 16 bits gas/write: extend fx_pcrel_adjust to 16 bits gas/config/tc-ppc.c | 11 ++++++----- gas/write.h | 4 ++-- include/opcode/ppc.h | 5 ++++- opcodes/ppc-dis.c | 12 ++++++------ 4 files changed, 18 insertions(+), 14 deletions(-) -- 2.36.0