OSDN Git Service

target/ppc: Correct RMLS table
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 6 Jan 2020 06:18:54 +0000 (17:18 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Mar 2020 22:41:15 +0000 (09:41 +1100)
commitd37b40daf647aaf2f5e4c4dfcd62c9412ff05009
treed15c09b395889b149e6e58db311ead0b8c86be0e
parenta864a6b382d52579210b86cde50bc949d48a3155
target/ppc: Correct RMLS table

The table of RMA limits based on the LPCR[RMLS] field is slightly wrong.
We're missing the RMLS == 0 => 256 GiB RMA option, which is available on
POWER8, so add that.

The comment that goes with the table is much more wrong.  We *don't* filter
invalid RMLS values when writing the LPCR, and there's not really a
sensible way to do so.  Furthermore, while in theory the set of RMLS values
is implementation dependent, it seems in practice the same set has been
available since around POWER4+ up until POWER8, the last model which
supports RMLS at all.  So, correct that as well.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
target/ppc/mmu-hash64.c