Branch condition problems
Quoted 5 lines
From my tests, it seems that std in a delayed branch slot occurs a hundred of time during a boot, so not a lot. Adding a new field to the CPU structure would probably decrease the performances (except on hosts with a lot of registers). Therefore I am proposing something like that (currently for std only):
Can you test if this works instead?
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Quoted 8 lines · Blue Swirl
Quoted 5 lines
From my tests, it seems that std in a delayed branch slot occurs a hundred of time during a boot, so not a lot. Adding a new field to the CPU structure would probably decrease the performances (except on hosts with a lot of registers). Therefore I am proposing something like that (currently for std only):
Can you test if this works instead?
The first hunk works well, and is indeed better than my patch. The second hunk applies, but does not compile.
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Quoted 7 lines · Aurelien Jarno
Quoted 6 lines · Blue Swirl
Quoted 5 lines
From my tests, it seems that std in a delayed branch slot occurs a hundred of time during a boot, so not a lot. Adding a new field to the CPU structure would probably decrease the performances (except on hosts with a lot of registers). Therefore I am proposing something like that (currently for std only):
Quoted 6 lines
Quoted 2 lines
Can you test if this works instead?
The first hunk works well, and is indeed better than my patch. The second hunk applies, but does not compile.
The patch below (that includes the first hunk of your patch) also fixes stda. There is probably a smarter way to do that for the second hunk, but that imply more changes.
Index: target-sparc/translate.c
===================================================================
RCS file: /sources/qemu/qemu/target-sparc/translate.c,v retrieving revision 1.34
translate.c +7 -5
@@ -2454,8 +2454,8 @@ static void disas_sparc_insn(DisasContexgen_op_ldst (sth);break ;case 0x7 : -flush_T2 (dc); -gen_movl_reg_T2 (rd +1 ); +gen_op_ldst (st); +gen_movl_reg_T1 (rd +1 );gen_op_ldst (std);break ;#if !defined(CONFIG_USER_ONLY ) || defined(TARGET_SPARC64 )
@@ -2485,9 +2485,11 @@ static void disas_sparc_insn(DisasContexif (!supervisor (dc)) goto priv_insn;#endif -flush_T2 (dc); -gen_movl_reg_T2 (rd +1 ); -gen_op_stda (insn,0 ,8 ,0 ); +gen_op_stda (insn,0 ,4 ,0 ); +gen_op_movl_T1_im (4 ); +gen_op_add_T1_T0 (); +gen_movl_reg_T1 (rd +1 ); +gen_op_stda (insn,0 ,4 ,0 );break ;#endif #ifdef TARGET_SPARC64
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net