qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4] tcg-hppa get it working, v2.1
@ 2010-03-16 15:50 Richard Henderson
  2010-03-12 14:58 ` [Qemu-devel] [PATCH 4/4] tcg-hppa: Compute is_write in cpu_signal_handler Richard Henderson
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Richard Henderson @ 2010-03-16 15:50 UTC (permalink / raw)
  To: qemu-devel

Gah.  Left out --thread and -s options to format-patch.
Sorry about that.


r~



Richard Henderson (4):
  tcg-hppa: Fix const errors in hppa-dis.c.
  tcg-hppa: Fix 64-bit argument ordering.
  tcg-hppa: Finish the port.
  tcg-hppa: Compute is_write in cpu_signal_handler.

 configure             |    5 +-
 cpu-exec.c            |   38 +-
 hppa-dis.c            |    4 +-
 tcg/hppa/tcg-target.c | 1846 +++++++++++++++++++++++++++++++++++--------------
 tcg/hppa/tcg-target.h |  142 +---
 tcg/tcg.c             |   12 +-
 6 files changed, 1387 insertions(+), 660 deletions(-)

^ permalink raw reply	[flat|nested] 18+ messages in thread
* [Qemu-devel] [PATCH 2/4] tcg-hppa: Fix 64-bit argument ordering.
@ 2010-03-16 15:45 Richard Henderson
  0 siblings, 0 replies; 18+ messages in thread
From: Richard Henderson @ 2010-03-16 15:45 UTC (permalink / raw)
  To: qemu-devel

---
 tcg/tcg.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/tcg/tcg.c b/tcg/tcg.c
index 1818868..d753149 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -596,7 +596,17 @@ void tcg_gen_callN(TCGContext *s, TCGv_ptr func, unsigned int flags,
                 real_args++;
             }
 #endif
-#ifdef TCG_TARGET_WORDS_BIGENDIAN
+	    /* If stack grows up, then we will be placing successive
+	       arguments at lower addresses, which means we need to
+	       reverse the order compared to how we would normally
+	       treat either big or little-endian.  For those arguments
+	       that will wind up in registers, this still works for
+	       HPPA (the only current STACK_GROWSUP target) since the
+	       argument registers are *also* allocated in decreasing
+	       order.  If another such target is added, this logic may
+	       have to get more complicated to differentiate between
+	       stack arguments and register arguments.  */
+#if defined(TCG_TARGET_WORDS_BIGENDIAN) != defined(TCG_TARGET_STACK_GROWSUP)
             *gen_opparam_ptr++ = args[i] + 1;
             *gen_opparam_ptr++ = args[i];
 #else
-- 
1.6.6.1

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

end of thread, other threads:[~2010-03-23 21:28 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-16 15:50 [Qemu-devel] [PATCH 0/4] tcg-hppa get it working, v2.1 Richard Henderson
2010-03-12 14:58 ` [Qemu-devel] [PATCH 4/4] tcg-hppa: Compute is_write in cpu_signal_handler Richard Henderson
2010-03-17  2:10   ` Stuart Brady
2010-03-17  2:23     ` Stuart Brady
2010-03-17 14:49       ` Richard Henderson
2010-03-16 15:52 ` [Qemu-devel] [PATCH 1/4] tcg-hppa: Fix const errors in hppa-dis.c Richard Henderson
2010-03-17  1:46   ` Stuart Brady
2010-03-23 21:26   ` Aurelien Jarno
2010-03-16 15:52 ` [Qemu-devel] [PATCH 2/4] tcg-hppa: Fix 64-bit argument ordering Richard Henderson
2010-03-17  1:49   ` Stuart Brady
2010-03-23 21:27   ` Aurelien Jarno
2010-03-16 15:53 ` [Qemu-devel] [PATCH 3/4] tcg-hppa: Finish the port Richard Henderson
2010-03-17  1:58   ` Stuart Brady
2010-03-17 14:56     ` Richard Henderson
2010-03-17 17:04       ` Richard Henderson
2010-03-17 20:01       ` Stuart Brady
2010-03-23 21:28       ` Aurelien Jarno
  -- strict thread matches above, loose matches on Subject: below --
2010-03-16 15:45 [Qemu-devel] [PATCH 2/4] tcg-hppa: Fix 64-bit argument ordering Richard Henderson

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).