From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:43424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rv1QC-0000aP-Vk for qemu-devel@nongnu.org; Wed, 08 Feb 2012 01:54:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rv1QB-00072K-Os for qemu-devel@nongnu.org; Wed, 08 Feb 2012 01:54:28 -0500 Date: Wed, 8 Feb 2012 10:54:21 +0400 (MSK) From: malc In-Reply-To: <1328680437-31779-1-git-send-email-david@gibson.dropbear.id.au> Message-ID: References: <1328680437-31779-1-git-send-email-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH] PPC64: Add support for ldbrx and stdbrx instructions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: qemu-ppc@nongnu.org, agraf@suse.de, qemu-devel@nongnu.org On Wed, 8 Feb 2012, David Gibson wrote: > From: Thomas Huth > > These instructions for loading and storing byte-swapped 64-bit values have > been introduced in PowerISA 2.06. > > Signed-off-by: Thomas Huth > --- > target-ppc/translate.c | 30 ++++++++++++++++++++++++++++++ > 1 files changed, 30 insertions(+), 0 deletions(-) I seem to recall that POWER5 machine i had access to didn't have ld/stdbrx while CBE did have it (or was it the other way around?) so question is - is PPC_64B sufficient? [..snip..] > GEN_LDX(lhbr, ld16ur, 0x16, 0x18, PPC_INTEGER) > GEN_LDX(lwbr, ld32ur, 0x16, 0x10, PPC_INTEGER) > @@ -8878,6 +8907,7 @@ GEN_STS(stw, st32, 0x04, PPC_INTEGER) > #if defined(TARGET_PPC64) > GEN_STUX(std, st64, 0x15, 0x05, PPC_64B) > GEN_STX(std, st64, 0x15, 0x04, PPC_64B) > +GEN_STX(stdbr, st64r, 0x14, 0x14, PPC_64B) > #endif > GEN_STX(sthbr, st16r, 0x16, 0x1C, PPC_INTEGER) > GEN_STX(stwbr, st32r, 0x16, 0x14, PPC_INTEGER) > -- mailto:av1474@comtv.ru