]> Git Repo - qemu.git/commit
tcg/riscv: Fix branch range checks
authorRichard Henderson <[email protected]>
Wed, 4 Nov 2020 20:35:35 +0000 (12:35 -0800)
committerRichard Henderson <[email protected]>
Thu, 7 Jan 2021 15:09:42 +0000 (05:09 -1000)
commit844d0442a53ca40a8d826e7549f27a8d4ac3a582
treef726c032226628c3acfaa3201995536f5c1d3c5a
parent79dae4ddd89eb550401d64232a0f86501600adbf
tcg/riscv: Fix branch range checks

The offset even checks were folded into the range check incorrectly.
By offsetting by 1, and not decrementing the width, we silently
allowed out of range branches.

Assert that the offset is always even instead.  Move tcg_out_goto
down into the CONFIG_SOFTMMU block so that it is not unused.

Reviewed-by: Alistair Francis <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
tcg/riscv/tcg-target.c.inc
This page took 0.024814 seconds and 4 git commands to generate.