OSDN Git Service

target/arm: generalize 2-stage page-walk condition
authorRémi Denis-Courmont <remi.denis.courmont@huawei.com>
Tue, 12 Jan 2021 10:45:05 +0000 (12:45 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Jan 2021 14:38:52 +0000 (14:38 +0000)
commit7879460a6149ed5e80c29cac85449191d9c5754a
treea2cce70854b82840ee74de874aa86591190fa95a
parent588c6dd113b27b8db393c7264297b9d33261692e
target/arm: generalize 2-stage page-walk condition

The stage_1_mmu_idx() already effectively keeps track of which
translation regimes have two stages. Don't hard-code another test.

Signed-off-by: Rémi Denis-Courmont <remi.denis.courmont@huawei.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210112104511.36576-13-remi.denis.courmont@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c