From patchwork Mon Apr 24 12:52:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stafford Horne X-Patchwork-Id: 20122 Received: (qmail 120693 invoked by alias); 24 Apr 2017 12:53:21 -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 120616 invoked by uid 89); 24 Apr 2017 12:53:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 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-pf0-f172.google.com Received: from mail-pf0-f172.google.com (HELO mail-pf0-f172.google.com) (209.85.192.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Apr 2017 12:53:19 +0000 Received: by mail-pf0-f172.google.com with SMTP id c198so11949182pfc.1 for ; Mon, 24 Apr 2017 05:53:21 -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=1DTmpEUF4gs1KraVAPn/Vo0j9oh4D5ke9+WcHtsk11s=; b=AGHxIk4FFySbWdBluXo/ZYDSZ/DfdkBIVutw0JGQndty431IzCGA7pBmlxssp8MD2p DdTzEnV9M0tmgGxsstQWFo4D/9Fv+JKhx4b42tD4h38tPbsLBOl0YF1ESxERoeC7i5Sv ftN1T8+OlemmqcuqwS2kPrVQ4112JlWB3flCT/IrPGeYA6VYgzst4Fjf3IXyivqLswu2 1jbOV7ibF2Aj8MVMHhsa19fyfYXNnHYkAhFUnkyDkpr+V7sgzyuwn79oKa3seA1nJoSC 4r3YJx2Bkm1OqThT7XAU6xcAoTwsjHioOZROMHsDHwa8R0nq0yE6WDGzAbbli2iwIfcC k5Lw== X-Gm-Message-State: AN3rC/7D6Wc7zq+8LRMxo8YhYW7s0/yJl2gUziecI/ktT4d/vis0wrzf MAHGCkZcNQU8Mg== X-Received: by 10.98.93.25 with SMTP id r25mr24549771pfb.103.1493038399862; Mon, 24 Apr 2017 05:53:19 -0700 (PDT) Received: from localhost (z64.124-44-184.ppp.wakwak.ne.jp. [124.44.184.64]) by smtp.gmail.com with ESMTPSA id o124sm30921612pfb.92.2017.04.24.05.53.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Apr 2017 05:53:19 -0700 (PDT) From: Stafford Horne To: GDB patches Cc: Openrisc , Stafford Horne Subject: [PATCH v6 3/5] gdb: testsuite: Add or1k l.nop instruction Date: Mon, 24 Apr 2017 21:52:52 +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