qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] exec-all: Translate TCI return addresses backwards too
@ 2015-08-18  3:28 Peter Crosthwaite
  2015-08-18 15:08 ` Paolo Bonzini
  2015-08-18 20:05 ` Stefan Weil
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Crosthwaite @ 2015-08-18  3:28 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, sw, Peter Crosthwaite, rth

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.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
---
Changed since v1:
Wrote commit message.
---
 include/exec/exec-all.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h
index a6fce04..31c2405 100644
--- a/include/exec/exec-all.h
+++ b/include/exec/exec-all.h
@@ -308,11 +308,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.  */
-#if defined(CONFIG_TCG_INTERPRETER)
-# define GETPC_ADJ   0
-#else
 # define GETPC_ADJ   2
-#endif
 
 #define GETPC()  (GETRA() - GETPC_ADJ)
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] exec-all: Translate TCI return addresses backwards too
  2015-08-18  3:28 [Qemu-devel] [PATCH] exec-all: Translate TCI return addresses backwards too Peter Crosthwaite
@ 2015-08-18 15:08 ` Paolo Bonzini
  2015-08-18 20:05 ` Stefan Weil
  1 sibling, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2015-08-18 15:08 UTC (permalink / raw)
  To: Peter Crosthwaite, qemu-devel
  Cc: peter.maydell, rth, Peter Crosthwaite, qemu-stable, sw



On 17/08/2015 20:28, Peter Crosthwaite wrote:
> 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.
> 
> Reviewed-by: Richard Henderson <rth@twiddle.net>
> Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
> ---
> Changed since v1:
> Wrote commit message.
> ---
>  include/exec/exec-all.h | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h
> index a6fce04..31c2405 100644
> --- a/include/exec/exec-all.h
> +++ b/include/exec/exec-all.h
> @@ -308,11 +308,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.  */
> -#if defined(CONFIG_TCG_INTERPRETER)
> -# define GETPC_ADJ   0
> -#else
>  # define GETPC_ADJ   2
> -#endif
>  
>  #define GETPC()  (GETRA() - GETPC_ADJ)
>  
> 

Cc: qemu-stable@nongnu.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] exec-all: Translate TCI return addresses backwards too
  2015-08-18  3:28 [Qemu-devel] [PATCH] exec-all: Translate TCI return addresses backwards too Peter Crosthwaite
  2015-08-18 15:08 ` Paolo Bonzini
@ 2015-08-18 20:05 ` Stefan Weil
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Weil @ 2015-08-18 20:05 UTC (permalink / raw)
  To: Peter Crosthwaite, qemu-devel
  Cc: peter.maydell, Peter Crosthwaite, qemu-stable, Paolo Bonzini, rth

Am 18.08.2015 um 05:28 schrieb Peter Crosthwaite:
> 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.
> 
> Reviewed-by: Richard Henderson <rth@twiddle.net>
> Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
> ---
> Changed since v1:
> Wrote commit message.
> ---
>  include/exec/exec-all.h | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h
> index a6fce04..31c2405 100644
> --- a/include/exec/exec-all.h
> +++ b/include/exec/exec-all.h
> @@ -308,11 +308,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.  */
> -#if defined(CONFIG_TCG_INTERPRETER)
> -# define GETPC_ADJ   0
> -#else
>  # define GETPC_ADJ   2
> -#endif
>  
>  #define GETPC()  (GETRA() - GETPC_ADJ)


Who should send the pull request? Me because it is TCI related?
I won't be able to send one before next week.

I also suggest to remove the indentation which is no longer
useful:

#define GETPC_ADJ   2

instead of

# define GETPC_ADJ   2

Maybe this can be done by the person who requests the pull.

Stefan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-18 20:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-18  3:28 [Qemu-devel] [PATCH] exec-all: Translate TCI return addresses backwards too Peter Crosthwaite
2015-08-18 15:08 ` Paolo Bonzini
2015-08-18 20:05 ` Stefan Weil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).