diff options
author | Bruno Larsen (billionai) <bruno.larsen@eldorado.org.br> | 2021-05-25 08:53:52 -0300 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2021-06-03 13:22:06 +1000 |
commit | 52e9612ee94b58a1bc57242427b4dbe6c766d8f3 (patch) | |
tree | 9858f20f554e61498559aa368fd22a96b26fb04d /target/ppc/mmu_helper.c | |
parent | ac559ecbea2649819e7b3fdd09f4e0243e0128db (diff) | |
download | qemu-52e9612ee94b58a1bc57242427b4dbe6c766d8f3.zip qemu-52e9612ee94b58a1bc57242427b4dbe6c766d8f3.tar.gz qemu-52e9612ee94b58a1bc57242427b4dbe6c766d8f3.tar.bz2 |
target/ppc: used ternary operator when registering MAS
The write calback decision when registering the MAS SPR has been turned
into a ternary operation, rather than an if-then-else block.
This was done because when building without TCG, even though the
compiler will optimize away the pointers to spr_write_generic*, it
doesn't optimize away the decision and assignment to the local pointer,
creating compiler errors. This cleanup looked better than using ifdefs,
so we decided to with it.
Signed-off-by: Bruno Larsen (billionai) <bruno.larsen@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210525115355.8254-2-bruno.larsen@eldorado.org.br>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/ppc/mmu_helper.c')
0 files changed, 0 insertions, 0 deletions