target/ppc: Add support for SMT CTRL register
commitc5d98a7b3d455204e24212cb769dec8f490e4e1c
authorNicholas Piggin <npiggin@gmail.com>
Thu, 22 Jun 2023 09:33:52 +0000 (22 19:33 +1000)
committerCédric Le Goater <clg@kaod.org>
Sun, 25 Jun 2023 20:41:30 +0000 (25 22:41 +0200)
tree393dbdbfdbafa66bbd66c8ea21a0c62fdfc256d5
parentb769d4c8f4c67e794444a6376b849db2caeeff3e
target/ppc: Add support for SMT CTRL register

A relatively simple case to begin with, CTRL is a SMT shared register
where reads and writes need to synchronise against state changes by
other threads in the core.

Atomic serialisation operations are used to achieve this.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
target/ppc/helper.h
target/ppc/misc_helper.c
target/ppc/translate.c