[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 1/3] softmmu: add helper function to pass thr
From: |
Pavel Dovgaluk |
Subject: |
Re: [Qemu-devel] [PATCH v2 1/3] softmmu: add helper function to pass through retaddr |
Date: |
Thu, 18 Jun 2015 08:17:29 +0300 |
> From: Paolo Bonzini [mailto:address@hidden
> On 17/06/2015 14:42, Pavel Dovgalyuk wrote:
> > 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.
> >
> > Signed-off-by: Pavel Dovgalyuk <address@hidden>
> > ---
> > include/exec/cpu_ldst_template.h | 42
> > +++++++++++++++++++++++++++++++-------
> > include/exec/exec-all.h | 27 ++++++++++++++++++++++++
> > softmmu_template.h | 18 ++++++++++++++++
> > 3 files changed, 79 insertions(+), 8 deletions(-)
> >
> > diff --git a/include/exec/cpu_ldst_template.h
> > b/include/exec/cpu_ldst_template.h
> > index 95ab750..1847816 100644
> > --- a/include/exec/cpu_ldst_template.h
> > +++ b/include/exec/cpu_ldst_template.h
> > @@ -62,7 +62,9 @@
> > /* generic load/store macros */
> >
> > static inline RES_TYPE
> > -glue(glue(cpu_ld, USUFFIX), MEMSUFFIX)(CPUArchState *env, target_ulong ptr)
> > +glue(glue(glue(cpu_ld, USUFFIX), MEMSUFFIX), _ra)(CPUArchState *env,
> > + target_ulong ptr,
> > + uintptr_t retaddr)
>
> Would it make sense to call these helper_cpu_ld##USUFFIX##MEMSUFFIX?
I don't want to use 'helper' prefix, because helper functions are
usually called directly from TB.
Pavel Dovgalyuk
- [Qemu-devel] [PATCH v2 0/3] Fix exceptions handling for MIPS and i386, Pavel Dovgalyuk, 2015/06/17
- [Qemu-devel] [PATCH v2 1/3] softmmu: add helper function to pass through retaddr, Pavel Dovgalyuk, 2015/06/17
- Re: [Qemu-devel] [PATCH v2 1/3] softmmu: add helper function to pass through retaddr, Pavel Dovgaluk, 2015/06/18
- Re: [Qemu-devel] [PATCH v2 1/3] softmmu: add helper function to pass through retaddr, Paolo Bonzini, 2015/06/18
- Re: [Qemu-devel] [PATCH v2 1/3] softmmu: add helper function to pass through retaddr, Pavel Dovgaluk, 2015/06/18
- Re: [Qemu-devel] [PATCH v2 1/3] softmmu: add helper function to pass through retaddr, Paolo Bonzini, 2015/06/18
[Qemu-devel] [PATCH v2 2/3] target-mips: exceptions handling in icount mode, Pavel Dovgalyuk, 2015/06/17
[Qemu-devel] [PATCH v2 3/3] target-i386: fix memory operations in helpers, Pavel Dovgalyuk, 2015/06/17