diff options
| author | Richard Henderson | 2018-11-30 20:52:48 +0100 |
|---|---|---|
| committer | Richard Henderson | 2018-12-17 04:04:43 +0100 |
| commit | 6ac1778676f4259c10b0629ccd9df319a5d1baeb (patch) | |
| tree | 3ca241f2b2279e251ad0803028165c25393b8aac /tcg/tci | |
| parent | tcg/mips: Remove retranslation code (diff) | |
| download | qemu-6ac1778676f4259c10b0629ccd9df319a5d1baeb.tar.gz qemu-6ac1778676f4259c10b0629ccd9df319a5d1baeb.tar.xz qemu-6ac1778676f4259c10b0629ccd9df319a5d1baeb.zip | |
tcg: Return success from patch_reloc
This will move the assert for success from within (subroutines of)
patch_reloc into the callers. It will also let new code do something
different when a relocation is out of range.
For the moment, all backends are trivially converted to return true.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tci')
| -rw-r--r-- | tcg/tci/tcg-target.inc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tcg/tci/tcg-target.inc.c b/tcg/tci/tcg-target.inc.c index 62ed097254..0015a98485 100644 --- a/tcg/tci/tcg-target.inc.c +++ b/tcg/tci/tcg-target.inc.c @@ -369,7 +369,7 @@ static const char *const tcg_target_reg_names[TCG_TARGET_NB_REGS] = { }; #endif -static void patch_reloc(tcg_insn_unit *code_ptr, int type, +static bool patch_reloc(tcg_insn_unit *code_ptr, int type, intptr_t value, intptr_t addend) { /* tcg_out_reloc always uses the same type, addend. */ @@ -381,6 +381,7 @@ static void patch_reloc(tcg_insn_unit *code_ptr, int type, } else { tcg_patch64(code_ptr, value); } + return true; } /* Parse target specific constraints. */ |
