Some fixes for TCG debugging
PATCH 1/1 Some fixes for TCG debugging
Hello,
this fixes a few things after Paul's improvements for TCG debugging:
- change TCGv_i64 field name to something different from
TCGv_i32
- fix things in tcg that the above change made visible.
I am currently compiling all targets to see if this reveals some other errors.
Laurent
tcg-op.h +2 -2
@@ -132,7 +132,7 @@ TCGArg offset) { *gen_opc_ptr++ = opc; - *gen_opparam_ptr++ =GET_TCGV_I32 (val); + *gen_opparam_ptr++ =GET_TCGV_I64 (val); *gen_opparam_ptr++ =GET_TCGV_PTR (base); *gen_opparam_ptr++ = offset; }
@@ -166,7 +166,7 @@ }static inline void tcg_gen_op4_i64 (int opc,TCGv_i64 arg1,TCGv_i64 arg2, -TCGv_i64 arg3,TCGv_i32 arg4) +TCGv_i64 arg3,TCGv_i64 arg4) { *gen_opc_ptr++ = opc; *gen_opparam_ptr++ =GET_TCGV_I64 (arg1);
tcg.c +1 -1
@@ -746,7 +746,7 @@char *tcg_get_arg_str_i64 (TCGContext *s,char *buf,int buf_size,TCGv_i64 arg) { -return tcg_get_arg_str_idx (s, buf, buf_size,GET_TCGV_I32 (arg)); +return tcg_get_arg_str_idx (s, buf, buf_size,GET_TCGV_I64 (arg)); }static int helper_cmp (const void *p1,const void *p2)
tcg.h +2 -2
@@ -131,7 +131,7 @@typedef struct { -int n; +int n2; }TCGv_i64 ;#define MAKE_TCGV_I32 (i) __extension__ \
@@ -139,7 +139,7 @@#define MAKE_TCGV_I64 (i) __extension__ \ ({ TCGv_i64 make_tcgv_tmp = {i}; make_tcgv_tmp;})#define GET_TCGV_I32 (t) ((t).n) -#define GET_TCGV_I64 (t) ((t).n) +#define GET_TCGV_I64 (t) ((t).n2)#if TCG_TARGET_REG_BITS ==32 #define TCGV_LOW (t) MAKE_TCGV_I32(GET_TCGV_I64(t))#define TCGV_HIGH (t) MAKE_TCGV_I32(GET_TCGV_I64(t) + 1)
Quoted 7 lines · Laurent Desnogues
Hello,
this fixes a few things after Paul's improvements for TCG debugging:
- change
TCGv_i64field name to something different fromTCGv_i32- fix things in tcg that the above change made visible.
No comment about that patch? Except that it lacks this:
Thanks,
Laurent
Quoted 6 lines · Laurent Desnogues
Quoted 4 lines · Laurent Desnogues
Hello,
this fixes a few things after Paul's improvements for TCG debugging:
Quoted 7 lines
Quoted 3 lines
- change
TCGv_i64field name to something different fromTCGv_i32- fix things in tcg that the above change made visible.
No comment about that patch? Except that it lacks this:
Signed-off-by Laurent Desnogues <[email protected]>
Still no comment for something that obvious?
Laurent
Quoted 13 lines · Laurent Desnogues
On Thu, Nov 20, 2008 at 1:11 PM, Laurent Desnogues
Quoted 10 lines · <[email protected]> wrote:
Quoted 7 lines · Laurent Desnogues
Hello,
this fixes a few things after Paul's improvements for TCG debugging:
- change
TCGv_i64field name to something different fromTCGv_i32- fix things in tcg that the above change made visible.
Quoted 6 lines
Quoted 3 lines
No comment about that patch? Except that it lacks this:
Signed-off-by Laurent Desnogues <[email protected]>Still no comment for something that obvious?
Looks OK. Anybody mind if I apply this?
Quoted 15 lines · Blue Swirl
Quoted 14 lines · Laurent Desnogues
On Thu, Nov 20, 2008 at 1:11 PM, Laurent Desnogues
Quoted 11 lines · <[email protected]> wrote:
On Tue, Nov 18, 2008 at 4:02 PM, Laurent Desnogues
Quoted 7 lines · <[email protected]> wrote:
Hello,
this fixes a few things after Paul's improvements for TCG debugging:
- change
TCGv_i64field name to something different fromTCGv_i32- fix things in tcg that the above change made visible.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
No comment about that patch? Except that it lacks this:
Signed-off-by Laurent Desnogues <[email protected]>Still no comment for something that obvious?
Looks OK. Anybody mind if I apply this?
IMHO it would make sense to call them i32/i64, thather than i/i2.
Paul
Quoted 1 line · Paul Brook
IMHO it would make sense to call them i32/i64, thather than i/i2.
I think the same. Here is an updated patch.
Laurent
tcg-op.h +2 -2
@@ -132,7 +132,7 @@ TCGArg offset) { *gen_opc_ptr++ = opc; - *gen_opparam_ptr++ =GET_TCGV_I32 (val); + *gen_opparam_ptr++ =GET_TCGV_I64 (val); *gen_opparam_ptr++ =GET_TCGV_PTR (base); *gen_opparam_ptr++ = offset; }
@@ -166,7 +166,7 @@ }static inline void tcg_gen_op4_i64 (int opc,TCGv_i64 arg1,TCGv_i64 arg2, -TCGv_i64 arg3,TCGv_i32 arg4) +TCGv_i64 arg3,TCGv_i64 arg4) { *gen_opc_ptr++ = opc; *gen_opparam_ptr++ =GET_TCGV_I64 (arg1);
tcg.c +1 -1
@@ -746,7 +746,7 @@char *tcg_get_arg_str_i64 (TCGContext *s,char *buf,int buf_size,TCGv_i64 arg) { -return tcg_get_arg_str_idx (s, buf, buf_size,GET_TCGV_I32 (arg)); +return tcg_get_arg_str_idx (s, buf, buf_size,GET_TCGV_I64 (arg)); }static int helper_cmp (const void *p1,const void *p2)
tcg.h +4 -4
@@ -126,20 +126,20 @@typedef struct { -int n; +int i32; }TCGv_i32 ;typedef struct { -int n; +int i64; }TCGv_i64 ;#define MAKE_TCGV_I32 (i) __extension__ \ ({ TCGv_i32 make_tcgv_tmp = {i}; make_tcgv_tmp;})#define MAKE_TCGV_I64 (i) __extension__ \ ({ TCGv_i64 make_tcgv_tmp = {i}; make_tcgv_tmp;}) -#define GET_TCGV_I32 (t) ((t).n) -#define GET_TCGV_I64 (t) ((t).n) +#define GET_TCGV_I32 (t) ((t).i32) +#define GET_TCGV_I64 (t) ((t).i64)#if TCG_TARGET_REG_BITS ==32 #define TCGV_LOW (t) MAKE_TCGV_I32(GET_TCGV_I64(t))#define TCGV_HIGH (t) MAKE_TCGV_I32(GET_TCGV_I64(t) + 1)
I take the opportunity of the clean up week-end to ask what has happened to this proposed patch :-)
Laurent
Quoted 2 lines · Laurent Desnogues
I take the opportunity of the clean up week-end to ask what has
happened to this proposed patch :-)
Simple: it has been forgotten, sorry. I'll apply it now, thank you for the patch.