From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21816 invoked by alias); 18 May 2002 18:27:24 -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 21799 invoked from network); 18 May 2002 18:27:19 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 18 May 2002 18:27:19 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 5D25B3E98; Sat, 18 May 2002 14:27:18 -0400 (EDT) Message-ID: <3CE69D06.4070207@cygnus.com> Date: Sat, 18 May 2002 11:27:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0rc2) Gecko/20020518 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Richard.Earnshaw@arm.com Cc: gdb-patches@sources.redhat.com Subject: Re: [wip/cagney_regbuf-20020515-branch] Introduce regcache_move() References: <200205181137.MAA28231@cam-mail2.cambridge.arm.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00787.txt.bz2 > rearnsha@arm.com said: > >> Write_register_bytes will then overwrite the raw value in the cache >> without any regard to the masking operations that should be occuring >> when updating R15; the CPSR bits in the PC are just clobbered and we >> are left with a broken value in the R15 register. > > > Actually, this isn't a strict description of what happens (though the > result is pretty much the same). What really happens is that > write_register_byte will then call write_register_gen for each register > that returns a REGISTER_BYTE() address in the same range. The result is > that write_register_bytes calls > > write_register_gen(PC, newval) > write_register_gen(CPSR, newval) > > which is still equally bogus. Yep, and the second write won't do anything. Code will detect that the location is already up-to-date and supress the write through. Feel free to express total disbelief! :-) REGISTER_BYTE is also on the hit-list. Andrew