From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33431 invoked by alias); 23 Mar 2015 11:42:55 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 33422 invoked by uid 89); 23 Mar 2015 11:42:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 23 Mar 2015 11:42:54 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 6EF348EA4C for ; Mon, 23 Mar 2015 11:42:53 +0000 (UTC) Received: from [10.36.4.81] (vpn1-4-81.ams2.redhat.com [10.36.4.81]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t2NBgpWr022698 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 23 Mar 2015 07:42:52 -0400 Message-ID: <550FFC3B.8030901@redhat.com> Date: Mon, 23 Mar 2015 11:42:00 -0000 From: Nicholas Clifton User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: dj@redhat.com, gdb-patches@sourceware.org Subject: Re: RFA: RL78: Fix simulation of G13 multiply/divide peripheral References: <87fv91nfy3.fsf@redhat.com> <20150323081833.GC8039@vapier> In-Reply-To: <20150323081833.GC8039@vapier> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-03/txt/msg00711.txt.bz2 Hi Mike, > did you forgot to commit some other change ? rl78 fails to build now: > ../../../../sim/rl78/load.c:95:3: error: 'rl78_g10_mode' undeclared (first use > in this function) *doh*. Yes I did. Sorry about that. Fixed with this patch: Cheers Nick sim/rl78/ChangeLog 2015-03-23 Nick Clifton * cpu.c (rl78_g10_mode): Declare. (g13_multiply): Declare. * cpu.h (rl78_g10_mode): Export. (g13_multiply): Export. diff --git a/sim/rl78/cpu.c b/sim/rl78/cpu.c index a5056fc..32b1399 100644 --- a/sim/rl78/cpu.c +++ b/sim/rl78/cpu.c @@ -32,6 +32,8 @@ int verbose = 0; int trace = 0; int rl78_in_gdb = 1; int timer_enabled = 2; +int rl78_g10_mode = 0; +int g13_multiply = 0; #define REGISTER_ADDRESS 0xffee0 diff --git a/sim/rl78/cpu.h b/sim/rl78/cpu.h index e2457bb..0e10db9 100644 --- a/sim/rl78/cpu.h +++ b/sim/rl78/cpu.h @@ -97,4 +97,7 @@ extern int timer_enabled; extern void dump_counts_per_insn (const char * filename); extern unsigned int counts_per_insn[0x100000]; +extern int rl78_g10_mode; +extern int g13_multiply; + #endif