target/ppc: Better CTRL SPR implementation
commit488aad116651f9838767fd53d5660e6702925c14
authorNicholas Piggin <npiggin@gmail.com>
Tue, 20 Jun 2023 13:15:23 +0000 (20 23:15 +1000)
committerCédric Le Goater <clg@kaod.org>
Sun, 25 Jun 2023 20:41:30 +0000 (25 22:41 +0200)
tree924f6117367df3f4120f136de19aaef50ce96116
parenteb701f30120d899bdaa202c3cbd9219055fccae0
target/ppc: Better CTRL SPR implementation

The CTRL register is able to write the bit in the RUN field, which gets
reflected into the TS field which is read-only and contains the state of
the RUN field for all threads in the core.

TCG does not implement SMT, so the correct implementation just requires
mirroring the RUN bit into the first bit of the TS field.

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