All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL for-1.6] TCG mips --enable-debug fix
@ 2013-08-08 16:46 Richard Henderson
  2013-08-08 16:46 ` [Qemu-devel] [PULL for-1.6] tcg/mips: fix invalid op definition errors Richard Henderson
  2013-08-12 13:31 ` [Qemu-devel] [PULL for-1.6] TCG mips --enable-debug fix Anthony Liguori
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Henderson @ 2013-08-08 16:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori

Please pull for -rc2, thanks.


r~


The following changes since commit 6fdf98f281f85ae6e2883bed2f691bcfe33b1f9f:

  fw_cfg: the I/O port variant expects little-endian (2013-08-07 12:48:15 -0500)

are available in the git repository at:

  git://github.com/rth7680/qemu.git for-1.6

for you to fetch changes up to 31e846e8f3885f82df7cc96f0a14a6665b42388e:

  tcg/mips: fix invalid op definition errors (2013-08-08 06:11:19 -1000)

----------------------------------------------------------------
James Hogan (1):
      tcg/mips: fix invalid op definition errors

 tcg/mips/tcg-target.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

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

* [Qemu-devel] [PULL for-1.6] tcg/mips: fix invalid op definition errors
  2013-08-08 16:46 [Qemu-devel] [PULL for-1.6] TCG mips --enable-debug fix Richard Henderson
@ 2013-08-08 16:46 ` Richard Henderson
  2013-08-12 13:31 ` [Qemu-devel] [PULL for-1.6] TCG mips --enable-debug fix Anthony Liguori
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Henderson @ 2013-08-08 16:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori, James Hogan, Aurelien Jarno, Richard Henderson

From: James Hogan <james.hogan@imgtec.com>

tcg/mips/tcg-target.h defines various operations conditionally depending
upon the isa revision, however these operations are included in
mips_op_defs[] unconditionally resulting in the following runtime errors
if CONFIG_DEBUG_TCG is defined:

Invalid op definition for movcond_i32
Invalid op definition for rotl_i32
Invalid op definition for rotr_i32
Invalid op definition for deposit_i32
Invalid op definition for bswap16_i32
Invalid op definition for bswap32_i32
tcg/tcg.c:1196: tcg fatal error

Fix with ifdefs like the i386 backend does for movcond_i32.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 tcg/mips/tcg-target.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c
index 373c364..793532e 100644
--- a/tcg/mips/tcg-target.c
+++ b/tcg/mips/tcg-target.c
@@ -1617,19 +1617,29 @@ static const TCGTargetOpDef mips_op_defs[] = {
     { INDEX_op_shl_i32, { "r", "rZ", "ri" } },
     { INDEX_op_shr_i32, { "r", "rZ", "ri" } },
     { INDEX_op_sar_i32, { "r", "rZ", "ri" } },
+#if TCG_TARGET_HAS_rot_i32
     { INDEX_op_rotr_i32, { "r", "rZ", "ri" } },
     { INDEX_op_rotl_i32, { "r", "rZ", "ri" } },
+#endif
 
+#if TCG_TARGET_HAS_bswap16_i32
     { INDEX_op_bswap16_i32, { "r", "r" } },
+#endif
+#if TCG_TARGET_HAS_bswap32_i32
     { INDEX_op_bswap32_i32, { "r", "r" } },
+#endif
 
     { INDEX_op_ext8s_i32, { "r", "rZ" } },
     { INDEX_op_ext16s_i32, { "r", "rZ" } },
 
+#if TCG_TARGET_HAS_deposit_i32
     { INDEX_op_deposit_i32, { "r", "0", "rZ" } },
+#endif
 
     { INDEX_op_brcond_i32, { "rZ", "rZ" } },
+#if TCG_TARGET_HAS_movcond_i32
     { INDEX_op_movcond_i32, { "r", "rZ", "rZ", "rZ", "0" } },
+#endif
     { INDEX_op_setcond_i32, { "r", "rZ", "rZ" } },
     { INDEX_op_setcond2_i32, { "r", "rZ", "rZ", "rZ", "rZ" } },
 
-- 
1.8.3.1

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

* Re: [Qemu-devel] [PULL for-1.6] TCG mips --enable-debug fix
  2013-08-08 16:46 [Qemu-devel] [PULL for-1.6] TCG mips --enable-debug fix Richard Henderson
  2013-08-08 16:46 ` [Qemu-devel] [PULL for-1.6] tcg/mips: fix invalid op definition errors Richard Henderson
@ 2013-08-12 13:31 ` Anthony Liguori
  2013-08-12 13:56   ` Andreas Färber
  1 sibling, 1 reply; 4+ messages in thread
From: Anthony Liguori @ 2013-08-12 13:31 UTC (permalink / raw)
  To: Richard Henderson, qemu-devel

Richard Henderson <rth@twiddle.net> writes:

> Please pull for -rc2, thanks.
>
>
> r~
>
>
> The following changes since commit 6fdf98f281f85ae6e2883bed2f691bcfe33b1f9f:
>
>   fw_cfg: the I/O port variant expects little-endian (2013-08-07 12:48:15 -0500)
>
> are available in the git repository at:
>
>   git://github.com/rth7680/qemu.git for-1.6

I don't see a published branch of this name in the tree.

Regards,

Anthony Liguori

>
> for you to fetch changes up to 31e846e8f3885f82df7cc96f0a14a6665b42388e:
>
>   tcg/mips: fix invalid op definition errors (2013-08-08 06:11:19 -1000)
>
> ----------------------------------------------------------------
> James Hogan (1):
>       tcg/mips: fix invalid op definition errors
>
>  tcg/mips/tcg-target.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)

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

* Re: [Qemu-devel] [PULL for-1.6] TCG mips --enable-debug fix
  2013-08-12 13:31 ` [Qemu-devel] [PULL for-1.6] TCG mips --enable-debug fix Anthony Liguori
@ 2013-08-12 13:56   ` Andreas Färber
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Färber @ 2013-08-12 13:56 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel, Richard Henderson

Am 12.08.2013 15:31, schrieb Anthony Liguori:
> Richard Henderson <rth@twiddle.net> writes:
> 
>> Please pull for -rc2, thanks.
>>
>>
>> r~
>>
>>
>> The following changes since commit 6fdf98f281f85ae6e2883bed2f691bcfe33b1f9f:
>>
>>   fw_cfg: the I/O port variant expects little-endian (2013-08-07 12:48:15 -0500)
>>
>> are available in the git repository at:
>>
>>   git://github.com/rth7680/qemu.git for-1.6
> 
> I don't see a published branch of this name in the tree.

Aurélien seems to have already applied the original patch FWIW.

Andreas

> 
> Regards,
> 
> Anthony Liguori
> 
>>
>> for you to fetch changes up to 31e846e8f3885f82df7cc96f0a14a6665b42388e:
>>
>>   tcg/mips: fix invalid op definition errors (2013-08-08 06:11:19 -1000)
>>
>> ----------------------------------------------------------------
>> James Hogan (1):
>>       tcg/mips: fix invalid op definition errors
>>
>>  tcg/mips/tcg-target.c | 10 ++++++++++
>>  1 file changed, 10 insertions(+)
> 
> 


-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

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

end of thread, other threads:[~2013-08-12 13:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-08 16:46 [Qemu-devel] [PULL for-1.6] TCG mips --enable-debug fix Richard Henderson
2013-08-08 16:46 ` [Qemu-devel] [PULL for-1.6] tcg/mips: fix invalid op definition errors Richard Henderson
2013-08-12 13:31 ` [Qemu-devel] [PULL for-1.6] TCG mips --enable-debug fix Anthony Liguori
2013-08-12 13:56   ` Andreas Färber

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.