From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70604 invoked by alias); 30 May 2017 12:50:59 -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 70584 invoked by uid 89); 30 May 2017 12:50:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-22.6 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,SPF_PASS autolearn=ham version=3.3.2 spammy=andrea, H*RU:sk:sonic31, Hx-spam-relays-external:sk:sonic31, Andrea X-HELO: sonic316-43.consmr.mail.ir2.yahoo.com Received: from sonic316-43.consmr.mail.ir2.yahoo.com (HELO sonic316-43.consmr.mail.ir2.yahoo.com) (87.248.110.155) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 30 May 2017 12:50:56 +0000 Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ir2.yahoo.com with HTTP; Tue, 30 May 2017 12:50:58 +0000 Date: Tue, 30 May 2017 12:50:00 -0000 From: "Andrea Corallo via gdb-patches" Reply-To: Andrea Corallo Reply-To: Andrea Corallo To: "gdb-patches@sourceware.org" Message-ID: <1063903693.5257056.1496148658168@mail.yahoo.com> Subject: [PATCH] sim: microblaze: target endianess recognition fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: <1063903693.5257056.1496148658168.ref@mail.yahoo.com> X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg00621.txt.bz2 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 == BIG_ENDIAN) +#define target_big_endian (CURRENT_TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) static unsigned long microblaze_extract_unsigned_integer (unsigned char *addr, int len)