cpu_copy_thread() and cpu_fork() copy the whole PCB of the thread that
creates the new one, and cpu_set_upcall(), exec_setregs() and
ppc32_setregs() then only reset pcb_flags. The saved FSCR, TAR, DSCR,
EBB and load monitor registers keep the old thread's values.
cpu_switch() reloads FSCR and DSCR only when the old or the new thread
has PCB_CFSCR or PCB_CDSCR set, and assumes a thread without them has
zeroes there. So a new thread with stale fields runs with the
facilities turned on after a thread that used them: its own writes to
TAR or DSCR never trap and are never saved, and they stay in the
registers when the CPU moves on to a thread without the flags, which
can be in another process and can read them.
Zero the fields wherever the flags are cleared.
MFC after: 1 week