From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111320 invoked by alias); 3 Apr 2015 23:21:17 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 111308 invoked by uid 89); 3 Apr 2015 23:21:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD,UNSUBSCRIBE_BODY autolearn=no 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; Fri, 03 Apr 2015 23:21:15 +0000 Received: from vapier (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with SMTP id A29D4340859; Fri, 3 Apr 2015 23:21:13 +0000 (UTC) Date: Fri, 03 Apr 2015 23:21:00 -0000 From: Mike Frysinger To: Joel Sherrill Cc: "gdb@sourceware.org" Subject: Re: lm32 simulator configuration file question Message-ID: <20150403232113.GO22171@vapier> Mail-Followup-To: Joel Sherrill , "gdb@sourceware.org" References: <551DC087.7040103@oarcorp.com> <20150403014149.GJ22171@vapier> <551EF633.9030309@oarcorp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fu8LepSeDvpxVgv6" Content-Disposition: inline In-Reply-To: <551EF633.9030309@oarcorp.com> X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00010.txt.bz2 --fu8LepSeDvpxVgv6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2021 On 03 Apr 2015 15:21, Joel Sherrill wrote: > On 4/2/2015 8:41 PM, Mike Frysinger wrote: > > On 02 Apr 2015 17:19, Joel Sherrill wrote: > >> RTEMS has a BSP for the lm32 which runs on the simulator in gdb. > >> Based on our wrapper scripts and READMEs, this is how the simulator > >> is invoked in gdb: > >> > >> tar sim --hw-device lm32cpu \ > >> --hw-device "lm32uart/reg 0x80006000 0x100" \ > >> --hw-device "/lm32uart > int int0 /lm32cpu" \ > >> --hw-device "lm32timer/reg 0x80002000 0x80" \ > >> --hw-device "/lm32timer > int int1 /lm32cpu" \ > >> --memory-region 0x08000000,0x4000000 > > you can pass --hw-file to target sim too > Thank you. I updated the file to this: >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > /lm32cpu > /lm32uart@0x80006000/reg 0x80006000 0x100 > /lm32uart > int int0 /lm32cpu > /lm32timer@0x80002000/reg 0x80002000 0x80 > /lm32timer > int int1 /lm32cpu > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > And that works with gdb using the tar sim command below. >=20 > tar sim --hw-file lm32_evr.conf --memory-region 0x08000000,0x4000000 >=20 > But nothing comes out from the same executable using run >=20 > lm32-rtems4.11-run --hw-file lm32_evr.conf --memory-region=20 > 0x08000000,0x4000000 .hello.exe >=20 > Does that make any sense to you? honestly, i know nothing about the lm32 arch. it has no testsuite, and i h= ave=20 no idea how to make example programs. so i can't really explain why it mig= ht=20 not be working. with Blackfin, i use a leading slash on everything and it= =20 works for me. could i convince you to write a simple hello world program ? first one tha= t'd=20 run in the virtual environment, and the one that'd setup & write to the ser= ial=20 port ? that way we could check the .s files into the testsuite dir, and i = could=20 try poking around the models. if the latest version isn't working, you could try grabbing previous releas= es of=20 gdb and building the sim for that. -mike --fu8LepSeDvpxVgv6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVHyBpAAoJEEFjO5/oN/WBPdEP/ilB2w2rTQdcqgtbKl0R23w4 F3SG12I2jmcxjX9Bcovn1I57uM0A7JLO5fsGemYe5XxqljtkBoqcEVrMIz65I+S5 nnvx/nM86AuU+YCMQT/uZ61X6oCkSdmtDlhohdPWMDFuC93V75l9pl97UVPX5I99 vXmrOqYsuHOuvDB9fRQSqf8wY/hn9IgRCoaRAzH8+ySfQQwQV1UFsykgfFLWYN+2 eaforuJ2A2IMBvm6Mjem8NHHvQ21ETnm/TRWJQ8Vg1CZfGELtRyB6Ie4QA5ai3h9 tBaoNkQutdCO77U8bfQ3GiUyQaeisFZB63YJRvowrUDaCzyL6XQK6aiKY5soh8WU RXYPzBa8olXzmxCpwrTin4lLVikSJxml3K+22oxCFt8e3CxoXj2xHKBUiOygq8kV MFxix65ROy3aMZ4AusCsXZ8Sf8KkmP6n+puPBY3IA+BvlQLCQujbD3bPXyCxqq4e cWdSGkqJeXqVewbLwvRBmIv+5b+4lcXRbTOJy1WKkV0TidzYE5vR79nn68gx78fK +yG2w3u8DHg5A31mKr08iaXx11zEqHmDn/xpWZzcJkPFrRSvjqmgbepQNk6kuvkv TZ8l2vEeU/iKUbG6/mH0jmfYPt2WDZAD1OSibTl2IbcMf3v/ra0IBn8S83f4pOI/ A9wk86WCqRzWnoGb0G+z =beVJ -----END PGP SIGNATURE----- --fu8LepSeDvpxVgv6--