Commit a17d4482 authored by Peter Crosthwaite's avatar Peter Crosthwaite Committed by Stefan Weil

exec-all: Translate TCI return addresses backwards too

This subtraction of return addresses applies directly to TCI as well as
host-TCG. This fixes Linux boots for at least Microblaze, CRIS, ARM and
SH4 when using TCI.

[sw: Removed indentation for preprocessor statement]
[sw: The patch also fixes Linux boot for x86_64]
Reviewed-by: default avatarRichard Henderson <>
Signed-off-by: default avatarStefan Weil <>
Signed-off-by: default avatarPeter Crosthwaite <>
parent 47c9dfee
......@@ -357,11 +357,7 @@ extern uintptr_t tci_tb_ptr;
to indicate the compressed mode; subtracting two works around that. It
is also the case that there are no host isas that contain a call insn
smaller than 4 bytes, so we don't worry about special-casing this. */
# define GETPC_ADJ 0
# define GETPC_ADJ 2
#define GETPC_ADJ 2
#define GETPC() (GETRA() - GETPC_ADJ)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment