target/ppc: Add TFMR SPR implementation with read and write helpers
commitb25f2ffa19c0f4a79de0315d4eade36ce76b031c
authorNicholas Piggin <npiggin@gmail.com>
Sun, 25 Jun 2023 12:03:17 +0000 (25 22:03 +1000)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Fri, 7 Jul 2023 07:18:26 +0000 (7 04:18 -0300)
treee90345e0ba04072938c65fa5c4b7037deaccd11c
parent6f967f4f7869cd393585946ed43427c626a15d40
target/ppc: Add TFMR SPR implementation with read and write helpers

TFMR is the Time Facility Management Register which is specific to
POWER CPUs, and used for the purpose of timebase management (generally
by firmware, not the OS).

Add helpers for the TFMR register, which will form part of the core
timebase facility model in future but for now behaviour is unchanged.

Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-ID: <20230625120317.13877-3-npiggin@gmail.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/cpu_init.c
target/ppc/helper.h
target/ppc/spr_common.h
target/ppc/timebase_helper.c
target/ppc/translate.c