summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2010-04-08 01:24:35 +0200
committerAurelien Jarno <aurelien@aurel32.net>2010-04-08 11:57:16 +0200
commit3e1f46eaa4a4050f18dad5646ca79a774105c296 (patch)
tree7bbfad38d3040e3189635a020fc44bb9c838fa0b
parent91493631feb2d988bcfe9f837ffc1e04823d02cd (diff)
downloadfocaccia-qemu-3e1f46eaa4a4050f18dad5646ca79a774105c296.tar.gz
focaccia-qemu-3e1f46eaa4a4050f18dad5646ca79a774105c296.zip
tcg-hppa: Don't try to calls to non-constant addresses.
PA-RISC uses procedure descriptors.  We'd need to emit a call to
the millicode routine $$dyncall.  However, this situation doesn't
actually arise, since we always have the descriptor available at
TCG code generation time.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r--tcg/hppa/tcg-target.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tcg/hppa/tcg-target.c b/tcg/hppa/tcg-target.c
index 4f9c998bca..daddaab71d 100644
--- a/tcg/hppa/tcg-target.c
+++ b/tcg/hppa/tcg-target.c
@@ -1276,8 +1276,10 @@ static inline void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args,
         if (const_args[0]) {
             tcg_out_call(s, (void *)args[0]);
         } else {
-            tcg_out32(s, INSN_BLE_SR4 | INSN_R2(args[0]));
-            tcg_out_mov(s, TCG_REG_RP, TCG_REG_R31);
+            /* ??? FIXME: the value in the register in args[0] is almost
+               certainly a procedure descriptor, not a code address.  We
+               probably need to use the millicode $$dyncall routine.  */
+            tcg_abort();
         }
         break;