qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH v2 1/2] target/ppc: Implement hashst and hashchk


From: Víctor Colombo
Subject: Re: [RFC PATCH v2 1/2] target/ppc: Implement hashst and hashchk
Date: Mon, 11 Jul 2022 12:30:26 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

On 11/07/2022 11:18, Cornelia Huck wrote:
On Mon, Jul 11 2022, Víctor Colombo <victor.colombo@eldorado.org.br> wrote:

Implementation for instructions hashst and hashchk, which were added
in Power ISA 3.1B.

It was decided to implement the hash algorithm from ground up in this
patch exactly as described in Power ISA.

Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br>
---
  linux-headers/asm-powerpc/kvm.h            |  2 +
  target/ppc/cpu.h                           |  1 +
  target/ppc/cpu_init.c                      |  4 ++
  target/ppc/excp_helper.c                   | 80 ++++++++++++++++++++++
  target/ppc/helper.h                        |  2 +
  target/ppc/insn32.decode                   |  8 +++
  target/ppc/translate.c                     |  5 ++
  target/ppc/translate/fixedpoint-impl.c.inc | 32 +++++++++
  8 files changed, 134 insertions(+)

diff --git a/linux-headers/asm-powerpc/kvm.h b/linux-headers/asm-powerpc/kvm.h
index 9f18fa090f..dd58d574bf 100644
--- a/linux-headers/asm-powerpc/kvm.h
+++ b/linux-headers/asm-powerpc/kvm.h
@@ -646,6 +646,8 @@ struct kvm_ppc_cpu_char {
  #define KVM_REG_PPC_SIER3    (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xc3)
  #define KVM_REG_PPC_DAWR1    (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xc4)
  #define KVM_REG_PPC_DAWRX1   (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xc5)
+/* FIXME: KVM hasn't exposed these registers yet */
+#define KVM_REG_PPC_HASHKEYR    (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x00)

  /* Transactional Memory checkpointed state:
   * This is all GPRs, all VSX regs and a subset of SPRs

<editorial>
Please split any header updates into a separate patch (a full header
update or, if the changes are not yet included in Linux, a placeholder
patch. Thank you :)
</editorial>


Hello Cornelia
I'll do it. Thanks for your reply

--
Víctor Cora Colombo
Instituto de Pesquisas ELDORADO
Aviso Legal - Disclaimer <https://www.eldorado.org.br/disclaimer.html>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]