[Qemu-devel] [PATCH] tcg/mips: remove inline keywords.

2017-11-05 Thread Jiang Biao
The compiler will make reasonable default choies for inline functions, so the inline keywords are redundant. Remove them to retain consistant code style. Signed-off-by: Jiang Biao Suggested-by: Richard Henderson --- tcg/mips/tcg-target.inc.c | 52

[Qemu-devel] [PATCH] tcg/mips: make some functions inline.

2017-11-02 Thread Jiang Biao
Make some functions inline. Signed-off-by: Jiang Biao --- tcg/mips/tcg-target.inc.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc.c index 4b55ab8..f83a8ec 100644 --- a/tcg/mips/tcg-target.inc.c +++ b

[Qemu-devel] [PATCH] checkpatch: ignore perl files.

2017-10-11 Thread Jiang Biao
reference. Signed-off-by: Jiang Biao --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 3c0a28e..c4ec031 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1442,7 +1442,7 @@ sub process

[Qemu-devel] [PATCH] checkpatch: replace ERROR with WARN for extern checking.

2017-10-10 Thread Jiang Biao
There are some rare cases which need external declarations in .c files. patchew.org and checkpatch.pl will complain errors on patches for these declarations. Degrade ERROR to WARN to erase the error complaints taking checkpatch.pl in kernel as reference. Signed-off-by: Jiang Biao --- scripts

[Qemu-devel] [PATCH] scripts/checkpatch.pl: fix false error of externs checking.

2017-10-10 Thread Jiang Biao
When adding a function declaration in a .c file without extern keywork decoration, checkpatch.pl will report *externs should be avoided in .c files* false error. This patch fixes the bug. Signed-off-by: Jiang Biao --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[Qemu-devel] [PATCH] tcg/README: fix a description error.

2017-07-26 Thread Jiang Biao
The atomics.txt is not in the docs directory but in docs/devel/ instead. Signed-off-by: Jiang Biao --- tcg/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/README b/tcg/README index bf49e82..03bfb6a 100644 --- a/tcg/README +++ b/tcg/README @@ -446,7 +446,7 @@ when

[Qemu-devel] [PATCH] tcg/mips: reserve a register for the guest_base.

2017-07-10 Thread Jiang Biao
Reserve a register for the guest_base using ppc code for reference. By doing so, we do not have to recompute it for every memory load. Signed-off-by: Jiang Biao Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.inc.c | 17 + 1 file changed, 13 insertions(+), 4 deletions

[Qemu-devel] [PATCH v3] tcg/mips: Bugfix for crash when running program with qemu-i386.

2017-07-09 Thread Jiang Biao
When running a helloworld program with qemu-i386 in linux-user mode on Loongson 3A3000, it will crash. This patch fix the bug. Signed-off-by: Jiang Biao Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.inc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a

[Qemu-devel] [PATCH v2] tcg/mips: Bugfix for crash when running program with qemu-i386.

2017-07-09 Thread Jiang Biao
When running a helloworld program with qemu-i386 in linux-user mode on Loongson 3A3000, it will crash. The reasion is wrong assigning from base to addr_regl directly. This patch fix the bug. Signed-off-by: Jiang Biao Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.inc.c | 10

[Qemu-devel] [PATCH] tcg/mips: Bugfix for crash when running program with qemu-i386.

2017-07-06 Thread Jiang Biao
When running a helloworld program with qemu-i386 in linux-user mode on Loongson 3A3000, it will crash. This patch fix the bug. Signed-off-by: Jiang Biao --- tcg/mips/tcg-target.inc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg