Skip to content
Snippets Groups Projects
Commit eb849d8f authored by Peter Maydell's avatar Peter Maydell
Browse files

target/arm: Fix tlbbits calculation in tlbi_aa64_vae2is_write()


In tlbi_aa64_vae2is_write() the calculation
  bits = tlbbits_for_regime(env, secure ? ARMMMUIdx_E2 : ARMMMUIdx_SE2,
                            pageaddr)

has the two arms of the ?: expression reversed. Fix the bug.

Fixes: b6ad6062
Reported-by: default avatarRebecca Cran <rebecca@nuviainc.com>
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: default avatarRémi Denis-Courmont <remi.denis.courmont@huawei.com>
Reviewed-by: default avatarRebecca Cran <rebecca@nuviainc.com>
Message-id: 20210420123106.10861-1-peter.maydell@linaro.org
parent 68948d18
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment