ppc/ppc405: Introduce a store helper for SPR_40x_PID
commitdd69d140cedc904f3491c17415f75d753c7f1be4
authorCédric Le Goater <clg@kaod.org>
Tue, 4 Jan 2022 06:55:34 +0000 (4 07:55 +0100)
committerCédric Le Goater <clg@kaod.org>
Tue, 4 Jan 2022 06:55:34 +0000 (4 07:55 +0100)
tree58687f50b1400139bf5b7bf0683a1c238c8ccf8e
parentc316203c1ee6f9a6c301a0a6767d27cbb6a65c46
ppc/ppc405: Introduce a store helper for SPR_40x_PID

The PID SPR of the 405 CPU contains the translation ID of the TLB
which is a 8-bit field. Enforce the mask with a store helper.

Cc: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20211222064025.1541490-8-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20220103063441.3424853-9-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
target/ppc/cpu_init.c
target/ppc/spr_tcg.h
target/ppc/translate.c