diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-12-12 16:30:17 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-12-20 17:44:57 +0100 |
| commit | e07788a98909431ea32a7e5baf1e90b246b5b1cd (patch) | |
| tree | a67e50fe08144229c70c9310f05fb166cf5204ea /accel/tcg/internal-target.h | |
| parent | 93ef2c2f15a4ddb335f100d5c31b33ebad426253 (diff) | |
| download | focaccia-qemu-e07788a98909431ea32a7e5baf1e90b246b5b1cd.tar.gz focaccia-qemu-e07788a98909431ea32a7e5baf1e90b246b5b1cd.zip | |
accel/tcg: Un-inline log_pc()
log_pc() is only used within cpu-exec.c, no need to expose it via "internal-target.h". Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20241212185341.2857-10-philmd@linaro.org>
Diffstat (limited to 'accel/tcg/internal-target.h')
| -rw-r--r-- | accel/tcg/internal-target.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/accel/tcg/internal-target.h b/accel/tcg/internal-target.h index 6f4ec0bd42..0437d79829 100644 --- a/accel/tcg/internal-target.h +++ b/accel/tcg/internal-target.h @@ -72,16 +72,6 @@ G_NORETURN void cpu_io_recompile(CPUState *cpu, uintptr_t retaddr); bool tb_invalidate_phys_page_unwind(tb_page_addr_t addr, uintptr_t pc); -/* Return the current PC from CPU, which may be cached in TB. */ -static inline vaddr log_pc(CPUState *cpu, const TranslationBlock *tb) -{ - if (tb_cflags(tb) & CF_PCREL) { - return cpu->cc->get_pc(cpu); - } else { - return tb->pc; - } -} - /** * tcg_req_mo: * @type: TCGBar |