From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30341 invoked by alias); 12 Jan 2009 18:10:32 -0000 Received: (qmail 30333 invoked by uid 22791); 12 Jan 2009 18:10:31 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Jan 2009 18:09:56 +0000 Received: (qmail 13557 invoked from network); 12 Jan 2009 18:09:54 -0000 Received: from unknown (HELO localhost) (froydnj@127.0.0.2) by mail.codesourcery.com with ESMTPA; 12 Jan 2009 18:09:54 -0000 Date: Mon, 12 Jan 2009 18:10:00 -0000 From: Nathan Froyd To: gdb-patches@sourceware.org Subject: [PATCH,sim] properly handle sync instruction variants Message-ID: <20090112180954.GV28711@codesourcery.com> Mail-Followup-To: gdb-patches@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes 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 X-SW-Source: 2009-01/txt/msg00254.txt.bz2 Recent Power ISAs have included the ability to control the type of memory accesses ordered by the `sync' instruction by means of a two-bit field. The patch below modifies the ppc simulator's instruction description to take note of this two-bit field. Tested on powerpc-none-eabi, where it fixes ~140 g++ testsuite failures and a handful of gcc failures. OK to commit? -Nathan cvs diff: Diffing . Index: ChangeLog =================================================================== RCS file: /cvs/src/src/sim/ppc/ChangeLog,v retrieving revision 1.87 diff -u -u -r1.87 ChangeLog --- ChangeLog 15 Dec 2008 19:48:06 -0000 1.87 +++ ChangeLog 12 Jan 2009 18:04:27 -0000 @@ -1,3 +1,7 @@ +2009-01-12 Nathan Froyd + + * ppc-instructions (sync): Add L field. + 2008-12-15 Joel Sherrill * ppc-instructions, ppc-spr-table: Add ability Index: ppc-instructions =================================================================== RCS file: /cvs/src/src/sim/ppc/ppc-instructions,v retrieving revision 1.10 diff -u -u -r1.10 ppc-instructions --- ppc-instructions 15 Dec 2008 19:48:06 -0000 1.10 +++ ppc-instructions 12 Jan 2009 18:04:27 -0000 @@ -2494,7 +2494,7 @@ } PPC_INSN_INT(0, (RA_BITMASK & ~1) | RB_BITMASK | RS_BITMASK, 1/*Rc*/); -0.31,6./,11./,16./,21.598,31./:X::sync:Synchronize +0.31,6./,9.L,11./,16./,21.598,31./:X::sync:Synchronize *601: PPC_UNIT_IU, PPC_UNIT_IU, 1, 1, 0 *603: PPC_UNIT_SRU, PPC_UNIT_SRU, 1, 1, 0 *603e:PPC_UNIT_SRU, PPC_UNIT_SRU, 1, 1, 0