[Qemu-devel] [PATCH v6 RESEND 05/10] tcg-mips: Adjust move functions for mips64

2017-01-04 Thread Jin Guojie
tcg_out_mov: using OPC_OR as most mips assemblers do; tcg_out_movi: extended to 64-bit immediate. Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 34

[Qemu-devel] [PATCH v6 RESEND 10/10] tcg-mips: Adjust qemu_ld/st for mips64

2017-01-04 Thread Jin Guojie
Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 203 +- 1 file changed, 146 insertions(+), 57 deletions(-) diff --git a/tcg/mips/tcg

[Qemu-devel] [PATCH v6 RESEND 00/10] tcg mips64 and mips r6 improvements

2017-01-04 Thread Jin Guojie
ng Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie Jin Guojie (10): tcg-mips: Move bswap code to a subroutine tcg-mips: Add mips64 opcodes tcg-mips: Support 64-bit opcodes tcg-mips: Add bswap32u and bswap64 tcg-mips: Adjust move functions for mips64 tcg-mips: Adjust load

[Qemu-devel] [PATCH v6 RESEND 03/10] tcg-mips: Support 64-bit opcodes

2017-01-04 Thread Jin Guojie
Bulk patch adding 64-bit opcodes into tcg_out_op. Note that mips64 is as yet neither complete nor enabled. Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 41 ++ tcg/mips

[Qemu-devel] [PATCH v6 RESEND 09/10] tcg-mips: Adjust calling conventions for mips64

2017-01-04 Thread Jin Guojie
Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 19 +++ tcg/mips/tcg-target.inc.c | 21 +++-- 2 files changed, 30 insertions(+), 10 deletions

[Qemu-devel] [PATCH v6 RESEND 07/10] tcg-mips: Adjust prologue for mips64

2017-01-04 Thread Jin Guojie
Take stack frame parameters out from the function body. Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 54 ++- 1 file changed, 25

[Qemu-devel] [PATCH v6 RESEND 02/10] tcg-mips: Add mips64 opcodes

2017-01-04 Thread Jin Guojie
Since the mips manual tables are in octal, reorg all of the opcodes into that format for clarity. Note that the 64-bit opcodes are as yet unused. Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips

[Qemu-devel] [PATCH v6 RESEND 04/10] tcg-mips: Add bswap32u and bswap64

2017-01-04 Thread Jin Guojie
that we need not place additional restrictions on the qemu_ld outputs. Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 102 -- 1 file

[Qemu-devel] [PATCH v6 RESEND 01/10] tcg-mips: Move bswap code to a subroutine

2017-01-04 Thread Jin Guojie
we need not place additional restrictions on the qemu_ld outputs. Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 2 +- tcg/mips/tcg-target.inc.c | 207

[Qemu-devel] [PATCH v6 RESEND 06/10] tcg-mips: Adjust load/store functions for mips64

2017-01-04 Thread Jin Guojie
tcg_out_ldst: using a generic ALIAS_PADD to avoid ifdefs tcg_out_ld: generates LD or LW tcg_out_st: generates SD or SW Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 14

[Qemu-devel] [PATCH v6 RESEND 08/10] tcg-mips: Add tcg unwind info

2017-01-04 Thread Jin Guojie
Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 44 1 file changed, 44 insertions(+) diff --git a/tcg/mips/tcg-target.inc.c b/tcg

[Qemu-devel] [PATCH 0/1] Change default CFLAGS to -O3

2017-01-09 Thread Jin Guojie
le | Fedora25 |i386 |i386 | Signed-off-by: Jin Guojie Jin Guojie (1): Change default CFLAGS to -O3 configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.3

[Qemu-devel] [PATCH 1/1] Change default CFLAGS to -O3

2017-01-09 Thread Jin Guojie
For better performance. Signed-off-by: Jin Guojie --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 218df87..8ebc286 100755 --- a/configure +++ b/configure @@ -4753,9 +4753,9 @@ if test "$gcov" = "yes" ; then

Re: [Qemu-devel] [PATCH 0/1] Change default CFLAGS to -O3

2017-01-10 Thread Jin Guojie
booting is taken into consideration. I compare the booting time of linux-0.2.img under O2 and O3. Once again, I cannot see an observable difference. Based on these data I admit my patch has no benifit for performance. Jin Guojie -- Original -- From: &quo

[Qemu-devel] [PATCH v6 04/10] tcg-mips: Add bswap32u and bswap64

2016-12-11 Thread Jin Guojie
that we need not place additional restrictions on the qemu_ld outputs. Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 102 -- 1 file

[Qemu-devel] [PATCH v6 05/10] tcg-mips: Adjust move functions for mips64

2016-12-11 Thread Jin Guojie
tcg_out_mov: using OPC_OR as most mips assemblers do; tcg_out_movi: extended to 64-bit immediate. Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 34

[Qemu-devel] [PATCH v6 01/10] tcg-mips: Move bswap code to a subroutine

2016-12-11 Thread Jin Guojie
we need not place additional restrictions on the qemu_ld outputs. Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 2 +- tcg/mips/tcg-target.inc.c | 207

[Qemu-devel] [PATCH v6 02/10] tcg-mips: Add mips64 opcodes

2016-12-11 Thread Jin Guojie
Since the mips manual tables are in octal, reorg all of the opcodes into that format for clarity. Note that the 64-bit opcodes are as yet unused. Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips

[Qemu-devel] [PATCH v6 03/10] tcg-mips: Support 64-bit opcodes

2016-12-11 Thread Jin Guojie
Bulk patch adding 64-bit opcodes into tcg_out_op. Note that mips64 is as yet neither complete nor enabled. Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 41 ++ tcg/mips

[Qemu-devel] [PATCH v6 08/10] tcg-mips: Add tcg unwind info

2016-12-11 Thread Jin Guojie
Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 44 1 file changed, 44 insertions(+) diff --git a/tcg/mips/tcg-target.inc.c b/tcg

[Qemu-devel] [PATCH v6 00/10] tcg mips64 and mips r6 improvements

2016-12-11 Thread Jin Guojie
l. * Fix some minor style problems. * PATCH v2 12~16 are not examined due to the lack of R6 machine. Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie Jin Guojie (10): tcg-mips: Move bswap code to a subrou

[Qemu-devel] [PATCH v6 10/10] tcg-mips: Adjust qemu_ld/st for mips64

2016-12-11 Thread Jin Guojie
Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 203 +- 1 file changed, 146 insertions(+), 57 deletions(-) diff --git a/tcg/mips/tcg

[Qemu-devel] [PATCH v6 06/10] tcg-mips: Adjust load/store functions for mips64

2016-12-11 Thread Jin Guojie
tcg_out_ldst: using a generic ALIAS_PADD to avoid ifdefs tcg_out_ld: generates LD or LW tcg_out_st: generates SD or SW Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 14

[Qemu-devel] [PATCH v6 07/10] tcg-mips: Adjust prologue for mips64

2016-12-11 Thread Jin Guojie
Take stack frame parameters out from the function body. Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 54 ++- 1 file changed, 25

[Qemu-devel] [PATCH v6 09/10] tcg-mips: Adjust calling conventions for mips64

2016-12-11 Thread Jin Guojie
Tested-by: Aurelien Jarno Tested-by: James Hogan Tested-by: YunQiang Su Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 19 +++ tcg/mips/tcg-target.inc.c | 21 +++-- 2 files changed, 30 insertions(+), 10 deletions

Re: [Qemu-devel] [PATCH v6 00/10] tcg mips64 and mips r6 improvements

2016-12-19 Thread Jin Guojie
ping http://patchwork.ozlabs.org/patch/704829/ Please give me any advice and comment for speeding up the review process. Thank you all! Jin Guojie -- Original -- From: "jinguojie";; Send time: Sunday, Dec 11, 2016 9:36 PM To: "qemu-devel&q

[Qemu-devel] Has the 'clone' bug been fixed?

2010-11-19 Thread Jin Guojie
I just downloaded qemu-0.12.5, compiled as i386-linux-user, and tried to run a simple "fork" test. Qemu failed to emulate fork(), only left an "Invalid argument" message. I checked linux-user/system.c, and noticed the "~(CSIGNAL | CLONE_NPTL_FLAGS2))" flags. But, since I'm not very professional in

[Qemu-devel] [patch] MIPS Initial support of Godson-3a multicore CPU

2010-11-30 Thread Jin Guojie
Aurelien, Attached is a patch for Godson-3a CPU support. Godson-3a is a newly developed MIPS-III like, multicore CPU by ICT, China. For you review. Any comment is welcomed. Jin Guojie www.loongson.cn 0001-MIPS-Initial-support-of-Godson-3a-multicore-CPU.patch Description: Binary data

[Qemu-devel] [PATCH] MIPS Initial support of Godson-3a multicore CPU

2010-12-07 Thread Jin Guojie
Signed-off-by: "Jin Guojie" Reviewed-by: "Gao Xiang" Reviewed-by: "Chen Huacai" A patch for Godson-3a CPU simulation. Godson-3a is a newly developed MIPS-III like, multicore CPU by ICT, China. We believe this patch could be helpful for other Godson developers

[Qemu-devel] [PATCH] fix do_socket(): type conversion for all targets

2010-12-07 Thread Jin Guojie
Signed-off-by: "Jin Guojie" Signed-off-by: "Yin Yixiao" Reviewed-by: "Gao Xiang" A patch for do_socket() in Linux user mode. The original code only handles socket constants conversion for target MIPS. We encountered this problem when emulating X86 apps on MIPS

[Qemu-devel] [PATCH v3 02/11] tcg-mips: Add mips64 opcodes

2016-11-24 Thread Jin Guojie
Since the mips manual tables are in octal, reorg all of the opcodes into that format for clarity. Note that the 64-bit opcodes are as yet unused. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 193

[Qemu-devel] [PATCH v3 00/11] tcg mips64 and mips r6 improvements

2016-11-24 Thread Jin Guojie
for mips64 (newly added)| | fix the blocking when emulating i386 kernel on mips64el| Jin Guojie (11): tcg-mips: Move bswap code to a subroutine tcg-mips: Add mips64 opcodes tcg-mips: Support 64-bit opcodes tcg-mips: Add bswap32u and bswap64 tcg-mips: Adjust move functions

[Qemu-devel] [PATCH v3 04/11] tcg-mips: Add bswap32u and bswap64

2016-11-24 Thread Jin Guojie
that we need not place additional restrictions on the qemu_ld outputs. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 102 -- 1 file changed, 99 insertions(+), 3 deletions

[Qemu-devel] [PATCH v3 01/11] tcg-mips: Move bswap code to a subroutine

2016-11-24 Thread Jin Guojie
we need not place additional restrictions on the qemu_ld outputs. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 2 +- tcg/mips/tcg-target.inc.c | 207 ++ 2 files changed

[Qemu-devel] [PATCH v3 08/11] tcg-mips: Add tcg unwind info

2016-11-24 Thread Jin Guojie
Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 44 1 file changed, 44 insertions(+) diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc.c index d4623b0

[Qemu-devel] [PATCH v3 06/11] tcg-mips: Adjust load/store functions for mips64

2016-11-24 Thread Jin Guojie
tcg_out_ldst: using a generic ALIAS_PADD to avoid ifdefs tcg_out_ld: generates LD or LW tcg_out_st: generates SD or SW Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 14 +++--- 1 file changed, 11

[Qemu-devel] [PATCH v3 09/11] tcg-mips: Adjust calling conventions for mips64

2016-11-24 Thread Jin Guojie
Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 19 +++ tcg/mips/tcg-target.inc.c | 21 +++-- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/tcg/mips/tcg-target.h b

[Qemu-devel] [PATCH v3 03/11] tcg-mips: Support 64-bit opcodes

2016-11-24 Thread Jin Guojie
Bulk patch adding 64-bit opcodes into tcg_out_op. Note that mips64 is as yet neither complete nor enabled. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 41 ++ tcg/mips/tcg-target.inc.c | 322

[Qemu-devel] [PATCH v3 11/11] tcg-mips: Adjust condition functions for mips64

2016-11-24 Thread Jin Guojie
,$3 Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 20 1 file changed, 20 insertions(+) diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc.c index 95090b6..0eb48ce 100644 --

[Qemu-devel] [PATCH v3 07/11] tcg-mips: Adjust prologue for mips64

2016-11-24 Thread Jin Guojie
Take stack frame parameters out from the function body. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 54 ++- 1 file changed, 25 insertions(+), 29 deletions(-) diff

[Qemu-devel] [PATCH v3 05/11] tcg-mips: Adjust move functions for mips64

2016-11-24 Thread Jin Guojie
tcg_out_mov: using OPC_OR as most mips assemblers do; tcg_out_movi: extended to 64-bit immediate. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 34 +- 1 file changed, 25 insertions

[Qemu-devel] [PATCH v3 10/11] tcg-mips: Adjust qemu_ld/st for mips64

2016-11-24 Thread Jin Guojie
Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 169 +++--- 1 file changed, 114 insertions(+), 55 deletions(-) diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg

Re: [Qemu-devel] [PATCH v3 10/11] tcg-mips: Adjust qemu_ld/st for mips64

2016-11-27 Thread Jin Guojie
t n32 is rarely used in current and future market. I can not even find an n32 debian distribution in Aurelien's qemu image collection. How about leave n32 as a TODO feature? Jin Guojie -- Original -- From: "Richard Henderson";; Date: Nov 25, 2016 T

Re: [Qemu-devel] [PATCH v3 11/11] tcg-mips: Adjust condition functions for mips64

2016-11-27 Thread Jin Guojie
etter solution in v4 patch soon. Jin Guojie -- Original -- From: "Aurelien Jarno";; Date: Nov 25, 2016 To: "Richard Henderson"; Cc: "Jin Guojie"; "qemu-devel"; "James Hogan"; Subject: Re: [PATCH v3 11/11] t

[Qemu-devel] [PATCH v4 02/10] tcg-mips: Add mips64 opcodes

2016-11-28 Thread Jin Guojie
Since the mips manual tables are in octal, reorg all of the opcodes into that format for clarity. Note that the 64-bit opcodes are as yet unused. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 193

[Qemu-devel] [PATCH v4 09/10] tcg-mips: Adjust calling conventions for mips64

2016-11-28 Thread Jin Guojie
Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 19 +++ tcg/mips/tcg-target.inc.c | 21 +++-- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/tcg/mips/tcg-target.h b

[Qemu-devel] [PATCH v4 05/10] tcg-mips: Adjust move functions for mips64

2016-11-28 Thread Jin Guojie
tcg_out_mov: using OPC_OR as most mips assemblers do; tcg_out_movi: extended to 64-bit immediate. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 34 +- 1 file changed, 25 insertions

[Qemu-devel] [PATCH v4 04/10] tcg-mips: Add bswap32u and bswap64

2016-11-28 Thread Jin Guojie
that we need not place additional restrictions on the qemu_ld outputs. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 102 -- 1 file changed, 99 insertions(+), 3 deletions

[Qemu-devel] [PATCH v4 03/10] tcg-mips: Support 64-bit opcodes

2016-11-28 Thread Jin Guojie
Bulk patch adding 64-bit opcodes into tcg_out_op. Note that mips64 is as yet neither complete nor enabled. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 41 ++ tcg/mips/tcg-target.inc.c | 322

[Qemu-devel] [PATCH v4 00/10] tcg mips64 and mips r6 improvements

2016-11-28 Thread Jin Guojie
| | i386 guest, when executing seabios | | (2) tcg_out_qemu_ld_slow_path: always sign-extend 32-bit loads | | Fix the blocking when emulating i386 kernel on mips64el| | tcg-mips: Adjust condition functions for mips64 (abandoned) | Jin Guojie (10): tcg

[Qemu-devel] [PATCH v4 06/10] tcg-mips: Adjust load/store functions for mips64

2016-11-28 Thread Jin Guojie
tcg_out_ldst: using a generic ALIAS_PADD to avoid ifdefs tcg_out_ld: generates LD or LW tcg_out_st: generates SD or SW Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 14 +++--- 1 file changed, 11

[Qemu-devel] [PATCH v4 10/10] tcg-mips: Adjust qemu_ld/st for mips64

2016-11-28 Thread Jin Guojie
Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 201 +- 1 file changed, 144 insertions(+), 57 deletions(-) diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg

[Qemu-devel] [PATCH v4 07/10] tcg-mips: Adjust prologue for mips64

2016-11-28 Thread Jin Guojie
Take stack frame parameters out from the function body. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 54 ++- 1 file changed, 25 insertions(+), 29 deletions(-) diff

[Qemu-devel] [PATCH v4 08/10] tcg-mips: Add tcg unwind info

2016-11-28 Thread Jin Guojie
Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 44 1 file changed, 44 insertions(+) diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc.c index d4623b0

[Qemu-devel] [PATCH v4 01/10] tcg-mips: Move bswap code to a subroutine

2016-11-28 Thread Jin Guojie
we need not place additional restrictions on the qemu_ld outputs. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 2 +- tcg/mips/tcg-target.inc.c | 207 ++ 2 files changed

Re: [Qemu-devel] [PATCH v3 00/11] tcg mips64 and mips r6 improvements

2016-11-30 Thread Jin Guojie
Thanks for Aurelien's first test results. I submitted v4 patch as a feedback to Richard's and your review comments on v3. Since v4 contains functional code change, should we do this test again on v4? Really sorry for this burden. Jin Guojie ---Original--- From: "Aurelien Jarno&q

Re: [Qemu-devel] [PATCH v4 00/10] tcg mips64 and mips r6 improvements

2016-11-30 Thread Jin Guojie
amd64 with qemu-system-x86_64 fails to boot kernel. A 'rep movsq' instruction is wrongly emulated. I will fix this bug within one or two days. But even Su cannot provide an R6 machine. Jin Guojie ---Original--- From: "Jin Guojie" Date: 2016/11/29 14:08:16 To: "qemu-devel

[Qemu-devel] [PATCH v5 00/10] tcg mips64 and mips r6 improvements

2016-12-01 Thread Jin Guojie
o the lack of R6 machine. Jin Guojie (10): tcg-mips: Move bswap code to a subroutine tcg-mips: Add mips64 opcodes tcg-mips: Support 64-bit opcodes tcg-mips: Add bswap32u and bswap64 tcg-mips: Adjust move functions for mips64 tcg-mips: Adjust load/store functions for mips64 tcg-mi

[Qemu-devel] [PATCH v5 06/10] tcg-mips: Adjust load/store functions for mips64

2016-12-01 Thread Jin Guojie
tcg_out_ldst: using a generic ALIAS_PADD to avoid ifdefs tcg_out_ld: generates LD or LW tcg_out_st: generates SD or SW Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 14 +++--- 1 file changed, 11

[Qemu-devel] [PATCH v5 03/10] tcg-mips: Support 64-bit opcodes

2016-12-01 Thread Jin Guojie
Bulk patch adding 64-bit opcodes into tcg_out_op. Note that mips64 is as yet neither complete nor enabled. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 41 ++ tcg/mips/tcg-target.inc.c | 322

[Qemu-devel] [PATCH v5 04/10] tcg-mips: Add bswap32u and bswap64

2016-12-01 Thread Jin Guojie
that we need not place additional restrictions on the qemu_ld outputs. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 102 -- 1 file changed, 99 insertions(+), 3 deletions

[Qemu-devel] [PATCH v5 07/10] tcg-mips: Adjust prologue for mips64

2016-12-01 Thread Jin Guojie
Take stack frame parameters out from the function body. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 54 ++- 1 file changed, 25 insertions(+), 29 deletions(-) diff

[Qemu-devel] [PATCH v5 02/10] tcg-mips: Add mips64 opcodes

2016-12-01 Thread Jin Guojie
Since the mips manual tables are in octal, reorg all of the opcodes into that format for clarity. Note that the 64-bit opcodes are as yet unused. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 193

[Qemu-devel] [PATCH v5 08/10] tcg-mips: Add tcg unwind info

2016-12-01 Thread Jin Guojie
Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 44 1 file changed, 44 insertions(+) diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc.c index 9e24662

[Qemu-devel] [PATCH v5 09/10] tcg-mips: Adjust calling conventions for mips64

2016-12-01 Thread Jin Guojie
Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 19 +++ tcg/mips/tcg-target.inc.c | 21 +++-- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/tcg/mips/tcg-target.h b

[Qemu-devel] [PATCH v5 01/10] tcg-mips: Move bswap code to a subroutine

2016-12-01 Thread Jin Guojie
we need not place additional restrictions on the qemu_ld outputs. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 2 +- tcg/mips/tcg-target.inc.c | 207 ++ 2 files changed

[Qemu-devel] [PATCH v5 05/10] tcg-mips: Adjust move functions for mips64

2016-12-01 Thread Jin Guojie
tcg_out_mov: using OPC_OR as most mips assemblers do; tcg_out_movi: extended to 64-bit immediate. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 34 +- 1 file changed, 25 insertions

[Qemu-devel] [PATCH v5 10/10] tcg-mips: Adjust qemu_ld/st for mips64

2016-12-01 Thread Jin Guojie
Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 203 +- 1 file changed, 146 insertions(+), 57 deletions(-) diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg

Re: [Qemu-devel] [PATCH v5 00/10] tcg mips64 and mips r6 improvements

2016-12-05 Thread Jin Guojie
-- Original -- From: "Richard Henderson";; Send time: Thursday, Dec 1, 2016 11:52 PM To: "Jin Guojie"; "qemu-devel"; Cc: "Aurelien Jarno"; "James Hogan"; Subject: Re: [PATCH v5 00/10] tcg mips64 and mips r6 impro

Re: [Qemu-devel] [PATCH] tcg/mips: Add support for mips64el backend

2016-11-14 Thread Jin Guojie
se it? Or whether it is worth modifying my patch and resubmit it according to your review comments? Jin Guojie -- Original -- From: "Richard Henderson";; Send time: Sunday, Nov 13, 2016 3:56 PM To: "jinguojie"; "qemu-devel"; Cc: &qu

Re: [Qemu-devel] [PATCH] tcg/mips: Add support for mips64el backend

2016-11-15 Thread Jin Guojie
iners and developers. You can send me your delivery address in private email. We welcome your recommendation of other developers you think who are in need of Loongson machines. Jin Guojie -- Original -- From: "Richard Henderson";; Send time: Wednesday,