OSDN Git Service

target/ppc: Add HASHKEYR and HASHPKEYR SPRs
authorVíctor Colombo <victor.colombo@eldorado.org.br>
Fri, 15 Jul 2022 20:54:37 +0000 (17:54 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Tue, 20 Sep 2022 13:54:06 +0000 (10:54 -0300)
commit903f84eb88c8d43fa2e46d4c30969de30dbb5297
tree4943a4e8255456b68ec93c781e550a1d24b4df67
parentd29201ff34a135cdfc197f4413c1c5047e4f58bb
target/ppc: Add HASHKEYR and HASHPKEYR SPRs

Add the Special Purpose Registers HASHKEYR and HASHPKEYR, which were
introduced by the Power ISA 3.1B. They are used by the new instructions
hashchk(p) and hashst(p).

The ISA states that the Operating System should generate the value for
these registers when creating a process, so it's its responsability to
do so. We initialize it with 0 for qemu-softmmu, and set a random 64
bits value for linux-user.

Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br>
Reviewed-by: Lucas Mateus Castro <lucas.araujo@eldorado.org.br>
Message-Id: <20220715205439.161110-2-victor.colombo@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/cpu.h
target/ppc/cpu_init.c