summary refs log tree commit diff stats
path: root/docs/devel/writing-monitor-commands.rst
diff options
context:
space:
mode:
authorLeandro Lupori <leandro.lupori@eldorado.org.br>2022-09-19 14:56:14 -0300
committerRichard Henderson <richard.henderson@linaro.org>2022-10-04 12:13:22 -0700
commit20add588296a8a24374004e9dbf6219f28665d34 (patch)
tree7f0a0a59b2e27d764f7f864c66dee283efb45bf9 /docs/devel/writing-monitor-commands.rst
parent8ed558ec0cbcc29ecf490e93c54dd65d276e8e69 (diff)
downloadfocaccia-qemu-20add588296a8a24374004e9dbf6219f28665d34.tar.gz
focaccia-qemu-20add588296a8a24374004e9dbf6219f28665d34.zip
tcg/ppc: Optimize 26-bit jumps
PowerPC64 processors handle direct branches better than indirect
ones, resulting in less stalled cycles and branch misses.

However, PPC's tb_target_set_jmp_target() was only using direct
branches for 16-bit jumps, while PowerPC64's unconditional branch
instructions are able to handle displacements of up to 26 bits.
To take advantage of this, now jumps whose displacements fit in
between 17 and 26 bits are also converted to direct branches.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Leandro Lupori <leandro.lupori@eldorado.org.br>
[rth: Expanded some commentary.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'docs/devel/writing-monitor-commands.rst')
0 files changed, 0 insertions, 0 deletions