From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id 690453891043 for ; Wed, 6 May 2020 02:55:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 690453891043 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nelson.chu@sifive.com Received: by mail-pf1-x42c.google.com with SMTP id r14so289864pfg.2 for ; Tue, 05 May 2020 19:55:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id; bh=KrOItH2tzFjOA7PgYqCEjKw0MetkuXu1hkOisMBE/VI=; b=icPaYitZHEf7UuYuIAzgNLv5HkniG0048BDT5Q6vjMuS/Glhf1uf7K1CcbcC9WUCwE 4mpVLwj5mosbsi30e3tGm+DFTs99geIXnh/AiUmsq6ZD+CI8/XN22dboJNAn0E+5ABhw SQGou+fUbDqE8nts7z5jlmUjg0iwiecVW5juzR1wDzFjlVMmDIeKBo1ZPCDvMIZ2Y8o6 AbwW+AkexraBSdV7xIheEXgXYaAWriLbe6CBh8pix/a5wodb8bCDg7ucRPmDewQ9Nf98 bVhqNt9PLOx+p+zWOcgDkrdiP2vfb1oCSTxo1TpLTceNkBBrCQTiwSRfke6CN86mp+jC 8paQ== 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; bh=KrOItH2tzFjOA7PgYqCEjKw0MetkuXu1hkOisMBE/VI=; b=rwjSZ4k+vBfJG6U2tuDnWyz6GHNw+ak1UWQFfH5Oq5xkqz89UTg4TgYUebazWzAFLo KoYj6wyZhC4tyBQuRqwTTO2u4huFOWFYI1DbLQkQRjb/lN5MJSwIVCVW1807+5UGtE6K fmL/qm6PiTSPb3Pd3m1IV0COT/GyfcRMHo9KpC1heDl8ffL0qWBGHfmCkKCUdS4/0evW DX1LabMG3weII58900UqBkKUKbvM7KTqk2PAq1p5USIRgKF4zB3zIs8o+9TY3ZouDgDm dV4Rib5ZFGVgcbWT9mEAKqxUTe7B/qYLOaVR3GNz80g8Yin1EDEa/kA3Lm1XgWppkM5I MvXg== X-Gm-Message-State: AGi0PuZIDnx8/1p+ExPxIFcZOouX1OoL5olyUTPFirugkT6Gc4jecF4G VM/hA1/3pwstWQDuLR29L8yuRZ0fTv6LQg== X-Google-Smtp-Source: APiQypKNUVNVqBwePl9XrxZUKNCoc5tQcG1pnVuDDTw1P32uq2wmZuUw7xuDukejQbO2ZFCNDt4hpQ== X-Received: by 2002:a63:ff42:: with SMTP id s2mr5343013pgk.410.1588733751449; Tue, 05 May 2020 19:55:51 -0700 (PDT) Received: from gamma05.internal.sifive.com ([64.62.193.194]) by smtp.gmail.com with ESMTPSA id 141sm222996pfz.171.2020.05.05.19.55.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 May 2020 19:55:50 -0700 (PDT) From: Nelson Chu To: binutils@sourceware.org, gdb-patches@sourceware.org Cc: palmer@dabbelt.com, kito.cheng@sifive.com, jimw@sifive.com, andrew@sifive.com, andrew.burgess@embecosm.com, asb@lowrisc.org, maxim.blinov@embecosm.com, nelson.chu@sifive.com Subject: [PATCH v2 0/9] RISC-V: Support version controling for ISA standard extensions and CSR Date: Tue, 5 May 2020 19:55:38 -0700 Message-Id: <1588733747-18787-1-git-send-email-nelson.chu@sifive.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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-List-Received-Date: Wed, 06 May 2020 02:55:53 -0000 Hi binutils and gdb, After getting some good feedbacks, I refactor the series of patches. These patches are tested and get toolchain regressions pass. There are some differences from the last version, 1. Remove the -mriscv-isa-version and --with-riscv-isa-version options. We can still use -march to choose the version for each extensions, so there is no need to add these. 2. Change the arguments of options from [1p9|1p9p1|...] to [1.9|1.9.1|...]. Unlike the architecture string has specified by spec, ther is no need to do the same thing for options. 3. Spilt the patches to reduce the burdens of review. [PATCH 3/7] RISC-V: Support new GAS options and configure options to set ISA versions to [PATCH v2 3/9] RISC-V: Support GAS option -misa-spec to set ISA versions [PATCH v2 4/9] RISC-V: Support configure options to set ISA versions by default. [PATCH 4/7] RISC-V: Support version checking for CSR according to privilege version. to [PATCH v2 5/9] RISC-V: Support version checking for CSR according to privilege spec version. [PATCH v2 6/9] RISC-V: Support configure option to choose the privilege spec version. 4. Use enum class rather than string to compare the choosen ISA spec in opcodes/riscv-opc.c. The behavior is same as comparing the choosen privilege spec. Thanks Nelson