From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12064 invoked by alias); 9 Aug 2012 03:11:38 -0000 Received: (qmail 12053 invoked by uid 22791); 9 Aug 2012 03:11:37 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,TW_EG X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Aug 2012 03:11:20 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1SzJ9a-0007Gc-B7 from Yao_Qi@mentor.com ; Wed, 08 Aug 2012 20:11:18 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Wed, 8 Aug 2012 20:11:18 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.1.289.1; Wed, 8 Aug 2012 20:11:09 -0700 From: Yao Qi To: CC: Mark Kettenis Subject: Re: [PATCH] Don't attach to 'target_changed' observer in regcache Date: Thu, 09 Aug 2012 03:11:00 -0000 Message-ID: <5527210.MOXy64knkR@qiyao.dyndns.org> User-Agent: KMail/4.8.3 (Linux/3.3.7-1.fc16.i686; KDE/4.8.3; i686; ; ) In-Reply-To: <201208081753.q78Hre36003861@glazunov.sibelius.xs4all.nl> References: <1343891847-16554-1-git-send-email-yao@codesourcery.com> <201208081753.q78Hre36003861@glazunov.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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: 2012-08/txt/msg00275.txt.bz2 On Wednesday, August 08, 2012 07:53:40 PM Mark Kettenis wrote: > > The author (Orjan) tried to support "changing the bank select register > > changes the contents (and meaning) for a whole set of other registers." > > The requirement is quite specific to Orjan's own port, so the better > > solution is to attach a function which invalidates all regcache in > > Orjan's backend, instead of doing it in target-independent part. >=20 > Banked registers aren't really that exotic. Especially if you realise > that register windows (SPARC, IA-64) are essentially banked registers. >=20 Banked register doesn't matter here. "Changing one special register change= s=20 the whole set of registers", which is exotic, matters. Are they (banked=20 registers) switched by modifying a certain register? Per my few knowledge = on=20 SPARC and IA-64, the answer is "No". The issues of this patch are 1) modifying read-only bits in writable regist= er=20 (as Dan pointed out), 2) troubles to Orjan's port. I can't see any other=20 issues of this patch. --=20 Yao (=E9=BD=90=E5=B0=A7)