From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13230 invoked by alias); 23 Aug 2004 19:48:22 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 13223 invoked from network); 23 Aug 2004 19:48:21 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 23 Aug 2004 19:48:21 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i7NJmFe3020847 for ; Mon, 23 Aug 2004 15:48:21 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i7NJmFa16987; Mon, 23 Aug 2004 15:48:15 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 5C1102B9D; Mon, 23 Aug 2004 15:46:58 -0400 (EDT) Message-ID: <412A49B0.7020304@gnu.org> Date: Mon, 23 Aug 2004 19:48:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040801 MIME-Version: 1.0 To: DJ Delorie Cc: gdb-patches@sources.redhat.com Subject: Re: [patch] sim/sh: fix movua for little endian References: <200408131934.i7DJYbYX021478@greed.delorie.com> In-Reply-To: <200408131934.i7DJYbYX021478@greed.delorie.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00626.txt.bz2 > The movua opcode was hardcoded for big endian; on little endian > targets it would retrieve the word backwards. Note that the global > endian compensators are keyed to the HOST endian as well and are not > usable for this purpose. > > The problem and solution are obvious, but my implementation may not > be, so I await approval (global maintainers - no sim/sh maintainer). > > Tested with an ABI testsuite I'm working on which is known to use > movua. Can you add a sim/testsuite/sh-elf/movua.s test? You'll need to clone the infrastructure from one of the other test directories. Andrew > 2004-08-13 DJ Delorie > > * gencode.c (movua.l): Compensate for endianness. >