[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH] PPC64: Add support for ldbrx and std
From: |
malc |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH] PPC64: Add support for ldbrx and stdbrx instructions |
Date: |
Wed, 8 Feb 2012 10:54:21 +0400 (MSK) |
User-agent: |
Alpine 2.00 (LNX 1167 2008-08-23) |
On Wed, 8 Feb 2012, David Gibson wrote:
> From: Thomas Huth <address@hidden>
>
> These instructions for loading and storing byte-swapped 64-bit values have
> been introduced in PowerISA 2.06.
>
> Signed-off-by: Thomas Huth <address@hidden>
> ---
> 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:address@hidden