[Qemu-devel] [Qemu-stable][PATCH] tcg: Fix occasional TCG broken problem when ldst optimization enabled

2013-03-22 Thread Yeongkyoon Lee
code_gen_buffer_max_size should be modified to code_gen_buffer_size. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- Here's is the promised patch with Aurelien Jarno for TCG broken problem, which is supposed to be applied to 1.3.x and 1.4.x releases as well as master. Thanks to Aurelien Jarno

[Qemu-devel] [Qemu-stable][PATCH v2] tcg: Fix occasional TCG broken problem when ldst optimization enabled

2013-03-22 Thread Yeongkyoon Lee
code_gen_buffer_max_size should be modified to code_gen_buffer_size. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- Here's is the promised patch with Aurelien Jarno for TCG broken problem, which is supposed to be applied to 1.3.x and 1.4.x releases as well as master. Thanks to Aurelien Jarno

[Qemu-devel] [Qemu-stable][PATCH v3] tcg: Fix occasional TCG broken problem when ldst optimization enabled

2013-03-22 Thread Yeongkyoon Lee
code_gen_buffer_max_size should be modified to code_gen_buffer_size. CC: qemu-sta...@nongnu.org Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- Here's the promised patch with Aurelien Jarno for TCG broken problem, which is supposed to be applied to 1.3.x and 1.4.x releases as well as master. Thanks

Re: [Qemu-devel] TCG broken in system mode (was TCG assertion with qemu-system-mipsel)

2013-03-21 Thread Yeongkyoon Lee
On 03/18/2013 07:27 AM, Aurélien Jarno wrote: On Wed, Mar 06, 2013 at 07:10:17AM +0100, Aurélien Jarno wrote: On Wed, Mar 06, 2013 at 11:05:15AM +0900, Yeongkyoon Lee wrote: On 03/05/2013 11:18 PM, Aurélien Jarno wrote: On Mon, Mar 04, 2013 at 05:37:31PM +0100, Aurélien Jarno wrote: Hi

Re: [Qemu-devel] TCG broken in system mode (was TCG assertion with qemu-system-mipsel)

2013-03-21 Thread Yeongkyoon Lee
On 03/22/2013 07:11 AM, Aurélien Jarno wrote: On Thu, Mar 21, 2013 at 04:04:44PM +0900, Yeongkyoon Lee wrote: On 03/18/2013 07:27 AM, Aurélien Jarno wrote: On Wed, Mar 06, 2013 at 07:10:17AM +0100, Aurélien Jarno wrote: On Wed, Mar 06, 2013 at 11:05:15AM +0900, Yeongkyoon Lee wrote: On 03/05

Re: [Qemu-devel] TCG assertion with qemu-system-mipsel

2013-03-05 Thread Yeongkyoon Lee
found that the issue comes from the following commits, which unfortunately are not bisectable one by one (though it won't change the results a lot): commit b76f0d8c2e3eac94bc7fd90a510cb7426b2a2699 Author: Yeongkyoon Lee yeongkyoon@samsung.com Date: Wed Oct 31 16:04:25 2012 +0900

[Qemu-devel] [PATCH v8 1/3] configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

2012-10-31 Thread Yeongkyoon Lee
Enable CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization only when a host is i386 or x86_64. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- configure |6 ++ 1 file changed, 6 insertions(+) diff --git a/configure b/configure index 9c6ac87..4be984e 100755

[Qemu-devel] [PATCH v8 3/3] tcg: Optimize qemu_ld/st by generating slow paths at the end of a block

2012-10-31 Thread Yeongkyoon Lee
Add optimized TCG qemu_ld/st generation which locates the code of TLB miss cases at the end of a block after generating the other IRs. Currently, this optimization supports only i386 and x86_64 hosts. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- tcg/i386/tcg-target.c | 404

[Qemu-devel] [PATCH v8 0/3] tcg: enhance code generation quality for qemu_ld/st IRs

2012-10-31 Thread Yeongkyoon Lee
. This remains as a further issue. Yeongkyoon Lee (3): configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization tcg: Add extended GETPC mechanism for MMU helpers with ldst optimization tcg: Optimize qemu_ld/st by generating slow paths at the end of a block

[Qemu-devel] [PATCH v8 2/3] tcg: Add extended GETPC mechanism for MMU helpers with ldst optimization

2012-10-31 Thread Yeongkyoon Lee
Add GETPC_EXT which is used by MMU helpers to selectively calculate the code address of accessing guest memory when called from a qemu_ld/st optimized code or a C function. Currently, it supports only i386 and x86-64 hosts. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- exec-all.h

[Qemu-devel] [PATCH v7 1/3] configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

2012-10-29 Thread Yeongkyoon Lee
Enable CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization only when a host is i386 or x86_64. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- configure |6 ++ 1 file changed, 6 insertions(+) diff --git a/configure b/configure index 37f712d..0493d55 100755

[Qemu-devel] [PATCH v7 2/3] tcg: Add extended GETPC mechanism for MMU helpers with ldst optimization

2012-10-29 Thread Yeongkyoon Lee
Add GETPC_EXT which is used by MMU helpers to selectively calculate the code address of accessing guest memory when called from a qemu_ld/st optimized code or a C function. Currently, it supports only i386 and x86-64 hosts. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- exec-all.h

[Qemu-devel] [PATCH v7 3/3] tcg: Optimize qemu_ld/st by generating slow paths at the end of a block

2012-10-29 Thread Yeongkyoon Lee
Add optimized TCG qemu_ld/st generation which locates the code of TLB miss cases at the end of a block after generating the other IRs. Currently, this optimization supports only i386 and x86_64 hosts. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- tcg/i386/tcg-target.c | 415

[Qemu-devel] [PATCH v7 0/3] tcg: enhance code generation quality for qemu_ld/st IRs

2012-10-29 Thread Yeongkyoon Lee
as a further issue. Yeongkyoon Lee (3): configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization tcg: Add extended GETPC mechanism for MMU helpers with ldst optimization tcg: Optimize qemu_ld/st by generating slow paths at the end of a block configure

Re: [Qemu-devel] [PATCH v7 0/3] tcg: enhance code generation quality for qemu_ld/st IRs

2012-10-29 Thread Yeongkyoon Lee
I've found that git status of my local repo is somewhat twisted. Sorry for your inconvenience. I'll send new patch after cleaning my repo. On 2012년 10월 29일 23:32, Yeongkyoon Lee wrote: Here is the 7th version of the series optimizing TCG qemu_ld/st code generation. v7: - Rebase and fix

Re: [Qemu-devel] [RESEND PATCH v6 2/3] tcg: Add extended GETPC mechanism for MMU helpers with ldst optimization

2012-10-28 Thread Yeongkyoon Lee
On 2012년 10월 27일 23:29, Blue Swirl wrote: On Sat, Oct 20, 2012 at 7:05 AM, Yeongkyoon Lee yeongkyoon@samsung.com wrote: Add GETPC_EXT which is used by MMU helpers to selectively calculate the code address of accessing guest memory when called from a qemu_ld/st optimized code or a C function

Re: [Qemu-devel] [RESEND PATCH v6 0/3] tcg: enhance code generation quality for qemu_ld/st IRs

2012-10-25 Thread Yeongkyoon Lee
On 2012년 10월 20일 16:05, Yeongkyoon Lee wrote: Let me resend this patch, because it looks ignored except for the comment from Richard Henderson for which I've replied. Here is the 6th version of the series optimizing TCG qemu_ld/st code generation. v6: - Remove an extra argument of return

Re: [Qemu-devel] [RESEND PATCH v6 2/3] tcg: Add extended GETPC mechanism for MMU helpers with ldst optimization

2012-10-23 Thread Yeongkyoon Lee
On 2012년 10월 24일 00:25, 陳韋任 (Wei-Ren Chen) wrote: Hi Yeongkyoon, +#if defined(CONFIG_QEMU_LDST_OPTIMIZATION) defined(CONFIG_SOFTMMU) +/* check whether the give addr is in TCG generated code buffer or not */ should be given. Cheers, chenwj Thanks a lot,

[Qemu-devel] [RESEND PATCH v6 1/3] configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

2012-10-20 Thread Yeongkyoon Lee
Enable CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization only when a host is i386 or x86_64. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- configure |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 353d788

[Qemu-devel] [RESEND PATCH v6 2/3] tcg: Add extended GETPC mechanism for MMU helpers with ldst optimization

2012-10-20 Thread Yeongkyoon Lee
Add GETPC_EXT which is used by MMU helpers to selectively calculate the code address of accessing guest memory when called from a qemu_ld/st optimized code or a C function. Currently, it supports only i386 and x86-64 hosts. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- exec-all.h

[Qemu-devel] [RESEND PATCH v6 3/3] tcg: Optimize qemu_ld/st by generating slow paths at the end of a block

2012-10-20 Thread Yeongkyoon Lee
Add optimized TCG qemu_ld/st generation which locates the code of TLB miss cases at the end of a block after generating the other IRs. Currently, this optimization supports only i386 and x86_64 hosts. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- tcg/i386/tcg-target.c | 415

[Qemu-devel] [RESEND PATCH v6 0/3] tcg: enhance code generation quality for qemu_ld/st IRs

2012-10-20 Thread Yeongkyoon Lee
address, in register or stack though they are not used in TLB hit case. This remains as a further issue. Yeongkyoon Lee (3): configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization tcg: Add extended GETPC mechanism for MMU helpers with ldst optimization tcg

Re: [Qemu-devel] [PATCH v6 3/3] tcg: Optimize qemu_ld/st by generating slow paths at the end of a block

2012-10-17 Thread Yeongkyoon Lee
On 2012년 10월 18일 08:44, Richard Henderson wrote: On 2012-10-16 17:23, Yeongkyoon Lee wrote: +/* Code generation of qemu_ld/st's slow path calling MMU helper + + PRE_PROC ... + call MMU helper + jmp POST_PROC (2b) : short forward jump - GETRA() + jmp next_code (5b

[Qemu-devel] [PATCH v6 0/3] tcg: enhance code generation quality for qemu_ld/st IRs

2012-10-16 Thread Yeongkyoon Lee
solution yet. In my opinion, TLB hit case performance could be degraded if removing the calling codes, because it needs to set runtime parameters, such as, data, mmu index and return address, in register or stack though they are not used in TLB hit case. This remains as a further issue. Yeongkyoon

[Qemu-devel] [PATCH v6 1/3] configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

2012-10-16 Thread Yeongkyoon Lee
Enable CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization only when a host is i386 or x86_64. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- configure |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 353d788

[Qemu-devel] [PATCH v6 2/3] tcg: Add extended GETPC mechanism for MMU helpers with ldst optimization

2012-10-16 Thread Yeongkyoon Lee
Add GETPC_EXT which is used by MMU helpers to selectively calculate the code address of accessing guest memory when called from a qemu_ld/st optimized code or a C function. Currently, it supports only i386 and x86-64 hosts. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- exec-all.h

[Qemu-devel] [PATCH v6 3/3] tcg: Optimize qemu_ld/st by generating slow paths at the end of a block

2012-10-16 Thread Yeongkyoon Lee
Add optimized TCG qemu_ld/st generation which locates the code of TLB miss cases at the end of a block after generating the other IRs. Currently, this optimization supports only i386 and x86_64 hosts. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- tcg/i386/tcg-target.c | 415

Re: [Qemu-devel] [PATCH v5 0/3] tcg: enhance code generation quality for qemu_ld/st IRs

2012-10-10 Thread Yeongkyoon Lee
On 2012년 10월 10일 15:45, Aurelien Jarno wrote: On Wed, Oct 10, 2012 at 01:17:36PM +0900, Yeongkyoon Lee wrote: On 2012년 10월 10일 02:09, Aurelien Jarno wrote: On Tue, Oct 09, 2012 at 06:55:58PM +0200, Paolo Bonzini wrote: Il 09/10/2012 18:19, Aurelien Jarno ha scritto: Instead of calling

Re: [Qemu-devel] [PATCH v5 2/3] tcg: Add declarations and templates of extended MMU helpers

2012-10-10 Thread Yeongkyoon Lee
On 2012년 10월 10일 03:36, Richard Henderson wrote: On 10/09/2012 05:37 AM, Yeongkyoon Lee wrote: Add declarations and templates of extended MMU helpers. An extended helper takes an additional argument of the host address accessing a guest memory which differs from the address of the call site

Re: [Qemu-devel] [PATCH v5 0/3] tcg: enhance code generation quality for qemu_ld/st IRs

2012-10-10 Thread Yeongkyoon Lee
On 2012년 10월 10일 19:34, Yeongkyoon Lee wrote: On 2012년 10월 10일 15:45, Aurelien Jarno wrote: On Wed, Oct 10, 2012 at 01:17:36PM +0900, Yeongkyoon Lee wrote: On 2012년 10월 10일 02:09, Aurelien Jarno wrote: On Tue, Oct 09, 2012 at 06:55:58PM +0200, Paolo Bonzini wrote: Il 09/10/2012 18:19

[Qemu-devel] [PATCH v5 2/3] tcg: Add declarations and templates of extended MMU helpers

2012-10-09 Thread Yeongkyoon Lee
-by: Yeongkyoon Lee yeongkyoon@samsung.com --- softmmu_defs.h | 39 +++ softmmu_header.h | 15 +++ softmmu_template.h | 41 + 3 files changed, 87 insertions(+), 8 deletions(-) diff --git

[Qemu-devel] [PATCH v5 0/3] tcg: enhance code generation quality for qemu_ld/st IRs

2012-10-09 Thread Yeongkyoon Lee
be degraded if removing the calling codes, because it needs to set runtime parameters, such as, data, mmu index and return address, in register or stack though they are not used in TLB hit case. This remains as a further issue. Yeongkyoon Lee (3): configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG

[Qemu-devel] [PATCH v5 3/3] tcg: Optimize qemu_ld/st by generating slow paths at the end of a block

2012-10-09 Thread Yeongkyoon Lee
Add optimized TCG qemu_ld/st generation which locates the code of TLB miss cases at the end of a block after generating the other IRs. Currently, this optimization supports only i386 and x86_64 hosts. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- tcg/i386/tcg-target.c | 420

[Qemu-devel] [PATCH v5 1/3] configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

2012-10-09 Thread Yeongkyoon Lee
Enable CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization only when a host is i386 or x86_64. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- configure |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/configure b/configure index e58846d

Re: [Qemu-devel] [PATCH v5 0/3] tcg: enhance code generation quality for qemu_ld/st IRs

2012-10-09 Thread Yeongkyoon Lee
On 2012년 10월 10일 02:09, Aurelien Jarno wrote: On Tue, Oct 09, 2012 at 06:55:58PM +0200, Paolo Bonzini wrote: Il 09/10/2012 18:19, Aurelien Jarno ha scritto: Instead of calling the MMU helper with an additional argument (7), and then jump back (8) to the next code (4), what about pushing the

Re: [Qemu-devel] [PATCH v5 3/3] tcg: Optimize qemu_ld/st by generating slow paths at the end of a block

2012-10-09 Thread Yeongkyoon Lee
On 2012년 10월 10일 03:49, Richard Henderson wrote: On 10/09/2012 05:37 AM, Yeongkyoon Lee wrote: +#if defined(CONFIG_QEMU_LDST_OPTIMIZATION) defined(CONFIG_SOFTMMU) +/* Initialize qemu_ld/st labels to assist code generation at the end of TB + for TLB miss cases at the end of TB

Re: [Qemu-devel] [RFC][PATCH v4 3/3] tcg: Optimize qemu_ld/st by generating slow paths at the end of a block

2012-08-28 Thread Yeongkyoon Lee
It's been a long time. I've tested the performances of one jump difference when fast qemu_ld/st (TLB hit). The result shows 3.6% CoreMark enhancement when reducing one jump where slow paths are generated at the end of block as same for the both cases. That means reducing one jump dominates the

Re: [Qemu-devel] [RFC][PATCH v4 3/3] tcg: Optimize qemu_ld/st by generating slow paths at the end of a block

2012-08-28 Thread Yeongkyoon Lee
On 2012년 08월 28일 03:31, Peter Maydell wrote: On 27 August 2012 08:23, Yeongkyoon Lee yeongkyoon@samsung.com wrote: BTW, who will finally confirm my patches? I have sent four version of my patches in which I have applied all the reasonable feedbacks from this community. If you'd like your

Re: [Qemu-devel] [RFC][PATCH v4 3/3] tcg: Optimize qemu_ld/st by generating slow paths at the end of a block

2012-08-27 Thread Yeongkyoon Lee
On 2012년 07월 29일 00:39, Yeongkyoon Lee wrote: On 2012년 07월 25일 23:00, Richard Henderson wrote: On 07/25/2012 12:35 AM, Yeongkyoon Lee wrote: +#if defined(CONFIG_QEMU_LDST_OPTIMIZATION) defined(CONFIG_SOFTMMU) +/* Macros/structures for qemu_ld/st IR code optimization: + TCG_MAX_HELPER_LABELS

Re: [Qemu-devel] [RFC][PATCH v4 3/3] tcg: Optimize qemu_ld/st by generating slow paths at the end of a block

2012-07-28 Thread Yeongkyoon Lee
On 2012년 07월 25일 23:00, Richard Henderson wrote: On 07/25/2012 12:35 AM, Yeongkyoon Lee wrote: +#if defined(CONFIG_QEMU_LDST_OPTIMIZATION) defined(CONFIG_SOFTMMU) +/* Macros/structures for qemu_ld/st IR code optimization: + TCG_MAX_HELPER_LABELS is defined as same as OPC_BUF_SIZE in exec

[Qemu-devel] [RFC][PATCH v4 0/3] tcg: enhance code generation quality for qemu_ld/st IRs

2012-07-25 Thread Yeongkyoon Lee
the calling codes, because it needs to set runtime parameters, such as, data, mmu index and return address, in register or stack though they are not used in TLB hit case. This remains as a further issue. Yeongkyoon Lee (3): configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st

[Qemu-devel] [RFC][PATCH v4 1/3] configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

2012-07-25 Thread Yeongkyoon Lee
Enable CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization only when a host is i386 or x86_64. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- configure |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/configure b/configure index cef0a71

[Qemu-devel] [RFC][PATCH v4 2/3] tcg: Add declarations and templates of extended MMU helpers

2012-07-25 Thread Yeongkyoon Lee
-by: Yeongkyoon Lee yeongkyoon@samsung.com --- softmmu_defs.h | 64 softmmu_header.h | 25 softmmu_template.h | 48 -- 3 files changed, 129 insertions(+), 8 deletions(-) diff

[Qemu-devel] [RFC][PATCH v4 3/3] tcg: Optimize qemu_ld/st by generating slow paths at the end of a block

2012-07-25 Thread Yeongkyoon Lee
Add optimized TCG qemu_ld/st generation which locates the code of TLB miss cases at the end of a block after generating the other IRs. Currently, this optimization supports only i386 and x86_64 hosts. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- tcg/i386/tcg-target.c | 475

Re: [Qemu-devel] [RFC][PATCH v3 1/3] configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

2012-07-19 Thread Yeongkyoon Lee
Ping? On 2012년 07월 17일 11:06, YeongKyoon Lee wrote: The reason why softmmu condition in configure is that softmmu is thought to be a logical prerequisite of ldst optimization. Current patch causes compilation error if removed the condition above. To avoid compilation error, it needs more

Re: [Qemu-devel] [RFC][PATCH v3 1/3] configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

2012-07-16 Thread YeongKyoon Lee
CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization On Sat, Jul 14, 2012 at 10:23 AM, Yeongkyoon Lee wrote: Enable CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization only when a target uses softmmu and a host is i386 or x86_64. --- configure |8 1 files changed, 8

[Qemu-devel] [RFC][PATCH v3 0/3] tcg: enhance code generation quality for qemu_ld/st IRs

2012-07-14 Thread Yeongkyoon Lee
hit case. This remains as a further issue. Yeongkyoon Lee (3): configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization tcg: Add declarations and templates of extended MMU helpers tcg: Optimize qemu_ld/st by generating slow paths at the end of a block configure

[Qemu-devel] [RFC][PATCH v3 2/3] tcg: Add declarations and templates of extended MMU helpers

2012-07-14 Thread Yeongkyoon Lee
Add declarations and templates of extended MMU helpers. An extended helper takes an additional argument of the host address accessing a guest memory which differs from the address of the call site to the helper because helper call sites locate at the end of a generated code block. ---

[Qemu-devel] [RFC][PATCH v3 1/3] configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

2012-07-14 Thread Yeongkyoon Lee
Enable CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization only when a target uses softmmu and a host is i386 or x86_64. --- configure |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 500fe24..5b39c80 100755 --- a/configure +++

[Qemu-devel] [RFC][PATCH v3 3/3] tcg: Optimize qemu_ld/st by generating slow paths at the end of a block

2012-07-14 Thread Yeongkyoon Lee
Add optimized TCG qemu_ld/st generation which locates the code of TLB miss cases at the end of a block after generating the other IRs. Currently, this optimization supports only i386 and x86_64 hosts. --- tcg/i386/tcg-target.c | 475 +++-- tcg/tcg.c

Re: [Qemu-devel] [RFC][PATCH v2 0/4] tcg: enhance code generation quality for qemu_ld/st IRs

2012-07-10 Thread Yeongkyoon Lee
On 2012년 07월 05일 22:23, Yeongkyoon Lee wrote: Summarized feature is as following. - All the changes are wrapped by macro CONFIG_QEMU_LDST_OPTIMIZATION and disabled by default. - They are enabled by configure --enable-ldst-optimization and need CONFIG_SOFTMMU. - They do not work

Re: [Qemu-devel] [RFC][PATCH v2 4/4] configure: add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

2012-07-08 Thread Yeongkyoon Lee
On 2012년 07월 07일 16:51, Blue Swirl wrote: On Fri, Jul 6, 2012 at 11:43 AM, Yeongkyoon Lee yeongkyoon@samsung.com wrote: On 2012년 07월 05일 23:06, Peter Maydell wrote: On 5 July 2012 14:23, Yeongkyoon Lee yeongkyoon@samsung.com wrote: Add an option --enable-ldst-optimization to enable

Re: [Qemu-devel] [RFC][PATCH v2 1/4] tcg: add declarations and templates of extended MMU helpers

2012-07-06 Thread Yeongkyoon Lee
Add declarations and templates of extended MMU helpers which can take return address argument to what helper functions return. These extended helper functions are called only by generated code. It's not entirely clear from this description what the return address argument actually is. My

Re: [Qemu-devel] [RFC][PATCH v2 3/4] tcg: add optimized TCG qemu_ld/st generation

2012-07-06 Thread Yeongkyoon Lee
Is it really worth having this as a CONFIG_ switch? If we think it's better to do this out of line we should just switch to always generating the out of line code, I think. There's not much point in retaining the old code path if it's disabled -- it will just bitrot. I agree. However, it is

Re: [Qemu-devel] [RFC][PATCH v2 4/4] configure: add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

2012-07-06 Thread Yeongkyoon Lee
On 2012년 07월 05일 23:06, Peter Maydell wrote: On 5 July 2012 14:23, Yeongkyoon Lee yeongkyoon@samsung.com wrote: Add an option --enable-ldst-optimization to enable CONFIG_QEMU_LDST_OPTIMIZATION macro for TCG qemu_ld/st optimization. It only works with CONFIG_SOFTMMU and doesn't work

Re: [Qemu-devel] [RFC][PATCH v2 2/4] tcg: add extended MMU helpers to softmmu targets

2012-07-06 Thread Yeongkyoon Lee
On 2012년 07월 06일 03:49, Blue Swirl wrote: On Thu, Jul 5, 2012 at 1:43 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 5 July 2012 14:23, Yeongkyoon Lee yeongkyoon@samsung.com wrote: Add extended MMU helpers to softmmu targets, where the targets are alpha, arm, cris, i386, lm32, m68k

[Qemu-devel] [RFC][PATCH v2 0/4] tcg: enhance code generation quality for qemu_ld/st IRs

2012-07-05 Thread Yeongkyoon Lee
hit case. This remains as a further issue. Yeongkyoon Lee (4): tcg: add declarations and templates of extended MMU helpers tcg: add extended MMU helpers to softmmu targets tcg: add optimized TCG qemu_ld/st generation configure: add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st

[Qemu-devel] [RFC][PATCH v2 1/4] tcg: add declarations and templates of extended MMU helpers

2012-07-05 Thread Yeongkyoon Lee
Add declarations and templates of extended MMU helpers which can take return address argument to what helper functions return. These extended helper functions are called only by generated code. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- softmmu_defs.h | 13

[Qemu-devel] [RFC][PATCH v2 2/4] tcg: add extended MMU helpers to softmmu targets

2012-07-05 Thread Yeongkyoon Lee
Add extended MMU helpers to softmmu targets, where the targets are alpha, arm, cris, i386, lm32, m68k, microblaze, mips, ppc, s390x, sh4, sparc and xtensa. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- target-alpha/mem_helper.c | 22 ++ target-arm

[Qemu-devel] [RFC][PATCH v2 4/4] configure: add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

2012-07-05 Thread Yeongkyoon Lee
Add an option --enable-ldst-optimization to enable CONFIG_QEMU_LDST_OPTIMIZATION macro for TCG qemu_ld/st optimization. It only works with CONFIG_SOFTMMU and doesn't work with CONFIG_TCG_PASS_AREG0. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- configure | 15

[Qemu-devel] [RFC][PATCH v2 3/4] tcg: add optimized TCG qemu_ld/st generation

2012-07-05 Thread Yeongkyoon Lee
Add optimized TCG qemu_ld/st generation which generates the code for TLB miss case handling at the end of TB after generating other IRs. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- tcg/i386/tcg-target.c | 328 + tcg/tcg.c

[Qemu-devel] [RFC][PATCH 1/4] tcg: add declarations and templates of extended MMU helpers

2012-07-04 Thread YeongKyoon Lee
Add declarations and templates of extended MMU helpers which can take return address argument to what helper functions return. Signed-off-by: Yeongkyoon Lee --- softmmu_defs.h | 13 + softmmu_template.h | 51 +-- 2 files changed

[Qemu-devel] [RFC][PATCH 2/4] tcg: add extended MMU helpers to targets

2012-07-04 Thread YeongKyoon Lee
Add extended MMU helpers to softmmu targets, where the targets are alpha, arm, cris, i386, lm32, m68k, microblaze, mips, ppc, s390x, sh4, sparc and xtensa. Signed-off-by: Yeongkyoon Lee --- target-alpha/mem_helper.c | 22 ++ target-arm/op_helper.c| 23

[Qemu-devel] [RFC][PATCH 3/4] tcg: add optimized TCG qemu_ld/st generation

2012-07-04 Thread YeongKyoon Lee
Add optimized TCG qemu_ld/st generation which generates the code for TLB miss case handling at the end of TB after generating other IRs. Signed-off-by: Yeongkyoon Lee --- tcg/i386/tcg-target.c | 328 + tcg/tcg.c | 12 ++ tcg/tcg.h

[Qemu-devel] [RFC][PATCH 4/4] configure: add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

2012-07-04 Thread YeongKyoon Lee
Add an option --enable-ldst-optimization to enable CONFIG_QEMU_LDST_OPTIMIZATION macro for TCG qemu_ld/st optimization. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com --- configure | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/configure b

[Qemu-devel] [RFC][PATCH 0/4] tcg: enhance code generation quality for qemu_ld/st IRs

2012-07-03 Thread YeongKyoon Lee
case. This remains as a further issue. Yeongkyoon Lee (4): tcg: add declarations and templates of extended MMU helpers tcg: add extended MMU helpers to targets tcg: add optimized TCG qemu_ld/st generation configure: add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization configure

Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?

2012-06-17 Thread YeongKyoon Lee
do you think about it? __ Principal Engineer VM Team Yeongkyoon Lee S-Core Co., Ltd. D.L.: +82-31-696-7249 M.P.: +82-10-9965-1265 __

Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?

2012-06-14 Thread YeongKyoon Lee
rate of the QEMU TLB. Another thing to consider is speeding up the fast path; see YeongKyoon Lee RFC patch: http://www.mail-archive.com/qemu-devel@nongnu.org/msg91294.html I only see PATCH 0/3, any idea on where the others? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab

Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?

2012-06-14 Thread YeongKyoon Lee
respectively. 2. The CPU cycles of host instructions are equal. 3.Ignoring TLB miss case. __ Principal Engineer VMTeam Yeongkyoon Lee S-Core Co., Ltd. D.L.: +82-31-696-7249 M.P.: +82-10-9965-1265 __

[Qemu-devel] [RFC PATCH 1/3] tcg: add extended MMU helper functions

2012-01-02 Thread YeongKyoon Lee
Title: Samsung Enterprise Portal mySingle MMU helper functions defined in softmmu_template.h are extended to receive their return address so that they return to give addresses not caller's pc's. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com---exec-all.h | 16

[Qemu-devel] [RFC PATCH 3/3] configure: add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

2012-01-02 Thread YeongKyoon Lee
Title: Samsung Enterprise Portal mySingle Add an option "--enable-ldst-optimization" to enable CONFIG_QEMU_LDST_OPTIMIZATION macro for TCG qemu_ld/st optimization. Signed-off-by: Yeongkyoon Lee yeongkyoon@samsung.com---configure | 7 +++1 files changed, 7 insertions(+), 0

[Qemu-devel] [RFC PATCH 0/3] tcg: optimize code generation for qemu_ld/st IRs

2011-12-29 Thread YeongKyoon Lee
(+0.2%) Yeongkyoon Lee (3):tcg: add extended MMU helper functionstcg: add optimized TCG qemu_ld/st generationconfigure: add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimizationconfigure | 7 +exec-all.h | 18 ++-softmmu_template.h | 123 +++tcg/i386/tcg-target.c | 392