target/ppc: Move 601 hflags adjustment to hreg_compute_hflags
commit1828504672cece95f7b38e9e63eb2dfeeb447830
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 15 Mar 2021 18:46:00 +0000 (15 12:46 -0600)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 4 May 2021 01:41:24 +0000 (4 11:41 +1000)
tree7bfccd70f10921577b1a8636754a514e763e545c
parent8a05fd9a22aa16d8a076a5dc9af2b5ed3658243c
target/ppc: Move 601 hflags adjustment to hreg_compute_hflags

Keep all hflags computation in one place, as this will be
especially important later.

Introduce a new POWERPC_FLAG_HID0_LE bit to indicate when
LE should be taken from HID0.  This appears to be set if
and only if POWERPC_FLAG_RTC_CLK is set, but we're not
short of bits and having both names will avoid confusion.

Note that this was the only user of hflags_nmsr, so we can
perform a straight assignment rather than mask and set.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210315184615.1985590-3-richard.henderson@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/cpu.h
target/ppc/helper_regs.c
target/ppc/misc_helper.c
target/ppc/translate_init.c.inc