From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26119 invoked by alias); 2 Jun 2017 07:03:47 -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 26105 invoked by uid 89); 2 Jun 2017 07:03:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.1 required=5.0 tests=AWL,BAYES_00,FORGED_MUA_MOZILLA,FREEMAIL_FROM,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=H*RU:sk:sonic30, HX-HELO:sk:sonic30, Hx-spam-relays-external:sk:sonic30, H*r:sk:sonic30 X-HELO: sonic309-28.consmr.mail.ir2.yahoo.com Received: from sonic309-28.consmr.mail.ir2.yahoo.com (HELO sonic309-28.consmr.mail.ir2.yahoo.com) (77.238.179.86) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 Jun 2017 07:03:45 +0000 Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ir2.yahoo.com with HTTP; Fri, 2 Jun 2017 07:03:47 +0000 Date: Fri, 02 Jun 2017 07:03:00 -0000 From: "Andrea Corallo via gdb-patches" Reply-To: Andrea Corallo Reply-To: Andrea Corallo To: GDB Patches Message-ID: <1548407488.156929.1496387026956@mail.yahoo.com> In-Reply-To: <1701357949.5649512.1496160941429@mail.yahoo.com> References: <1063903693.5257056.1496148658168.ref@mail.yahoo.com> <1063903693.5257056.1496148658168@mail.yahoo.com> <592D910B.9040503@eagerm.com> <1701357949.5649512.1496160941429@mail.yahoo.com> Subject: Re: [PATCH] sim: microblaze: target endianess recognition fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00006.txt.bz2 Hi Micheal, re reading my last mail I've realized it was maybe not so clear. I don't have write privileges so could you apply the patch? Thanks Andrea Il Marted=C3=AC 30 Maggio 2017 18:16, Andrea Corallo via gdb-patches ha scritto: I guess I don't.=20 Thanks K. Il Marted=C3=AC 30 Maggio 2017 17:34, Michael Eager ha s= critto: On 05/30/2017 05:50 AM, Andrea Corallo via gdb-patches wrote: > Hello, > seams the microblaze simulator is missing endianness conversions running = on small endian machine. > This small patch does the job for me. > I hope all is ok, is my first contribution so please forgive me in case I= 'm missing something. > > sim/microblaze/ChangeLog: > > 2017-05-30 Andrea Corallo > * interp.c: (target_big_endian): target endianess recognition fix. > --- > sim/microblaze/interp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sim/microblaze/interp.c b/sim/microblaze/interp.c > index e619cf8..75fc98b 100644 > --- a/sim/microblaze/interp.c > +++ b/sim/microblaze/interp.c > @@ -31,7 +31,7 @@ > > #include "microblaze-dis.h" > > -#define target_big_endian (CURRENT_TARGET_BYTE_ORDER =3D=3D BIG_ENDIAN) > +#define target_big_endian (CURRENT_TARGET_BYTE_ORDER =3D=3D BFD_ENDIAN_B= IG) > > static unsigned long > microblaze_extract_unsigned_integer (unsigned char *addr, int len) OK to apply. If you don't have write privileges, let me know. --=20 Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077