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
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
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
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
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
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
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
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
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
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
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
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
,$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
--
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
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
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
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
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
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
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
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
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
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
|
| 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-- 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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
71 matches
Mail list logo