From patchwork Mon Apr 13 06:02:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 6169 Received: (qmail 61161 invoked by alias); 13 Apr 2015 06:02:06 -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 61133 invoked by uid 89); 13 Apr 2015 06:02:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL, BAYES_00, SPF_PASS, T_RP_MATCHES_RCVD, UNWANTED_LANGUAGE_BODY autolearn=ham version=3.3.2 X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 13 Apr 2015 06:02:04 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 1A8A634094F for ; Mon, 13 Apr 2015 06:02:02 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH] sim: ft32: fix ft32_pc_get logic Date: Mon, 13 Apr 2015 02:02:00 -0400 Message-Id: <1428904920-4792-1-git-send-email-vapier@gentoo.org> X-IsSubscribed: yes Committed. --- sim/ft32/ChangeLog | 4 ++++ sim/ft32/interp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sim/ft32/ChangeLog b/sim/ft32/ChangeLog index 5caf31a..2ae6060 100644 --- a/sim/ft32/ChangeLog +++ b/sim/ft32/ChangeLog @@ -1,3 +1,7 @@ +2015-04-13 Mike Frysinger + + * interp.c (ft32_pc_get): Return the pc value. + 2015-04-12 Mike Frysinger * interp.c (sim_read, sim_write): Delete. diff --git a/sim/ft32/interp.c b/sim/ft32/interp.c index 0666f6c..8306a75 100644 --- a/sim/ft32/interp.c +++ b/sim/ft32/interp.c @@ -758,7 +758,7 @@ ft32_reg_fetch (SIM_CPU *cpu, static sim_cia ft32_pc_get (SIM_CPU *cpu) { - return 32; + return cpu->state.pc; } static void