aboutsummaryrefslogtreecommitdiff
path: root/softmmu_template.h
diff options
context:
space:
mode:
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>2015-07-10 12:56:50 +0300
committerRichard Henderson <rth@twiddle.net>2015-09-11 08:15:32 -0700
commit282dffc8a4bfe8724548cabb8a26698bde0a6e18 (patch)
tree498d82bfad3d2193b71fe197daf1950debfddea0 /softmmu_template.h
parent97ed5ccdee95f0b98bedc601ff979e368583472c (diff)
downloadqemu-282dffc8a4bfe8724548cabb8a26698bde0a6e18.zip
qemu-282dffc8a4bfe8724548cabb8a26698bde0a6e18.tar.gz
qemu-282dffc8a4bfe8724548cabb8a26698bde0a6e18.tar.bz2
softmmu: add helper function to pass through retaddr
This patch introduces several helpers to pass return address which points to the TB. Correct return address allows correct restoring of the guest PC and icount. These functions should be used when helpers embedded into TB invoke memory operations. Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> Message-Id: <20150710095650.13280.32255.stgit@PASHA-ISP> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'softmmu_template.h')
-rw-r--r--softmmu_template.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/softmmu_template.h b/softmmu_template.h
index 50dec1c..a071822 100644
--- a/softmmu_template.h
+++ b/softmmu_template.h
@@ -165,9 +165,6 @@ static inline DATA_TYPE glue(io_read, SUFFIX)(CPUArchState *env,
}
#endif
-#ifdef SOFTMMU_CODE_ACCESS
-static __attribute__((unused))
-#endif
WORD_TYPE helper_le_ld_name(CPUArchState *env, target_ulong addr,
TCGMemOpIdx oi, uintptr_t retaddr)
{
@@ -252,9 +249,6 @@ WORD_TYPE helper_le_ld_name(CPUArchState *env, target_ulong addr,
}
#if DATA_SIZE > 1
-#ifdef SOFTMMU_CODE_ACCESS
-static __attribute__((unused))
-#endif
WORD_TYPE helper_be_ld_name(CPUArchState *env, target_ulong addr,
TCGMemOpIdx oi, uintptr_t retaddr)
{