From patchwork Mon May 29 14:48:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stafford Horne X-Patchwork-Id: 20626 Received: (qmail 91954 invoked by alias); 29 May 2017 14:49:09 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 91771 invoked by uid 89); 29 May 2017 14:49:07 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-pg0-f50.google.com Received: from mail-pg0-f50.google.com (HELO mail-pg0-f50.google.com) (74.125.83.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 29 May 2017 14:49:05 +0000 Received: by mail-pg0-f50.google.com with SMTP id u28so23961682pgn.1 for ; Mon, 29 May 2017 07:49:09 -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:in-reply-to :references:in-reply-to:references; bh=plpZ0vlMlHfUls0qddoe1uqUhDo9Skr08xG9ghZ7hqA=; b=k+LM8m3cDe10FczZerS2df/q1hdGfEZ7vP/KlQN1CsXysakpzYgmunMJDc712Ggchh TBja0Rk+Ti4FJhYGz26W1w/Vklc8BTGWTN1AL97tw3svJFkNLW258vxMlIpLUo88mODK lFXZw4wV2jTlTpE6QAwHNv3MxhbL/+QXtkih1DYE9tJc/Aus8w/5cWqk06fRMIzaf4Pj lEJlhh/vlQ3NMqPbz+MGnqj4KJA0tPRSmFNP/zeI4BknMUlIdoqSIdC5RutiyGE2vAXL azSq19Bh1mXlBJqZKyNCQi17bDldUVhWd69NMWUwwXEt4T1y6nfV1Hty7NpdZcleDGXi oSZg== X-Gm-Message-State: AODbwcDN6Zca8cQBn6f4ZTB+06IThKzoAexGhmYbq5YDht2Xu30+2vIv 25a30GiXiPO5mLxn X-Received: by 10.98.72.28 with SMTP id v28mr18284234pfa.119.1496069347822; Mon, 29 May 2017 07:49:07 -0700 (PDT) Received: from localhost (g139.211-19-81.ppp.wakwak.ne.jp. [211.19.81.139]) by smtp.gmail.com with ESMTPSA id s68sm16959117pgc.5.2017.05.29.07.49.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 May 2017 07:49:07 -0700 (PDT) From: Stafford Horne To: GDB patches Cc: Openrisc , Stafford Horne Subject: [PATCH v7 2/4] gdb: testsuite: Add or1k l.nop instruction Date: Mon, 29 May 2017 23:48:24 +0900 Message-Id: In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes The test case requires adding a nop instruction. For or1k the instruction is `l.nop`. This change uses the correct operation. gdb/testsuite/ChangeLog: 2016-05-11 Stafford Horne * gdb.base/bp-permanent.c: Define nop of or1k. --- gdb/testsuite/gdb.base/bp-permanent.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb/testsuite/gdb.base/bp-permanent.c b/gdb/testsuite/gdb.base/bp-permanent.c index acd5be7..d42aafa 100644 --- a/gdb/testsuite/gdb.base/bp-permanent.c +++ b/gdb/testsuite/gdb.base/bp-permanent.c @@ -26,6 +26,8 @@ #if defined(__s390__) || defined(__s390x__) #define NOP asm("nopr 0") +#elif defined(__or1k__) +#define NOP asm("l.nop") #else #define NOP asm("nop") #endif