[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 02/15] tcg-mips: Support 64-bit opcodes
From: |
James Hogan |
Subject: |
Re: [Qemu-devel] [PATCH 02/15] tcg-mips: Support 64-bit opcodes |
Date: |
Tue, 9 Feb 2016 15:24:49 +0000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Hi Richard,
Awesome, thanks for looking at these patches again :-)
On Tue, Feb 09, 2016 at 09:39:50PM +1100, Richard Henderson wrote:
> +#if !use_mips32r6_instructions
> + { INDEX_op_muls2_i64, { "r", "r", "rZ", "rZ" } },
> + { INDEX_op_mulu2_i64, { "r", "r", "rZ", "rZ" } },
> +#endif
this...
> +#define TCG_TARGET_HAS_mulu2_i64 1
> +#define TCG_TARGET_HAS_muls2_i64 1
and this are inconsistent for r6:
Missing op definition for mulu2_i64
Missing op definition for muls2_i64
/work/mips/qemu/main/tcg/tcg.c:1253: tcg fatal error
It gets further (to the point of seg faulting - looking into it) with
this fixup:
diff --git a/tcg/mips/tcg-target.h b/tcg/mips/tcg-target.h
index 374d80374021..fa9cd4ab296a 100644
--- a/tcg/mips/tcg-target.h
+++ b/tcg/mips/tcg-target.h
@@ -145,8 +145,8 @@ extern bool use_mips32r2_instructions;
#define TCG_TARGET_HAS_nand_i64 0
#define TCG_TARGET_HAS_add2_i64 0
#define TCG_TARGET_HAS_sub2_i64 0
-#define TCG_TARGET_HAS_mulu2_i64 1
-#define TCG_TARGET_HAS_muls2_i64 1
+#define TCG_TARGET_HAS_mulu2_i64 (!use_mips32r6_instructions)
+#define TCG_TARGET_HAS_muls2_i64 (!use_mips32r6_instructions)
#define TCG_TARGET_HAS_muluh_i64 1
#define TCG_TARGET_HAS_mulsh_i64 1
#define TCG_TARGET_HAS_ext32s_i64 1
Cheers
James
signature.asc
Description: Digital signature
- [Qemu-devel] [PATCH 00/15] tcg mips64 and mipsr6 improvements, Richard Henderson, 2016/02/09
- [Qemu-devel] [PATCH 01/15] tcg-mips: Add mips64 opcodes, Richard Henderson, 2016/02/09
- [Qemu-devel] [PATCH 02/15] tcg-mips: Support 64-bit opcodes, Richard Henderson, 2016/02/09
- Re: [Qemu-devel] [PATCH 02/15] tcg-mips: Support 64-bit opcodes,
James Hogan <=
- [Qemu-devel] [PATCH 04/15] tcg-mips: Adjust load/store functions for mips64, Richard Henderson, 2016/02/09
- [Qemu-devel] [PATCH 03/15] tcg-mips: Adjust move functions for mips64, Richard Henderson, 2016/02/09
- [Qemu-devel] [PATCH 05/15] tcg-mips: Adjust prologue for mips64, Richard Henderson, 2016/02/09
- [Qemu-devel] [PATCH 06/15] tcg-mips: Add tcg unwind info, Richard Henderson, 2016/02/09
- [Qemu-devel] [PATCH 08/15] tcg-mips: Adjust calling conventions for mips64, Richard Henderson, 2016/02/09
- [Qemu-devel] [PATCH 09/15] tcg-mips: Fix exit_tb for mips64, Richard Henderson, 2016/02/09
- [Qemu-devel] [PATCH 10/15] tcg-mips: Move bswap code to subroutines, Richard Henderson, 2016/02/09
- [Qemu-devel] [PATCH 07/15] tcg-mips: Adjust qemu_ld/st for mips64, Richard Henderson, 2016/02/09