On 2/22/08, Thiemo Seufer <[EMAIL PROTECTED]> wrote: > Blue Swirl wrote: > > The attached patch enables most TCG ops for Qemu Sparc32/64 target. > > Sparc32 softmmu and linux-user are OK, but Sparc64 and Sparc32plus > > targets do not work. > > > > Comments? > > > > It would be nice to get rid of T2 usage in std (also stda and > > casa/casxa) but I don't know how to pass a 64-bit value from legacy op > > to TCG stores and loads on a 32-bit target and host.
[cut] > This whole lot should probably move to generic code (conditionalized on > TARGET_LONG_BITS), I have the same code in my MIPS prototype. I agree. Also these lines, if they are really needed: +#if TCG_TARGET_REG_BITS == 32 +#define tcg_gen_ld_ptr tcg_gen_ld_i32 +#else +#define tcg_gen_ld_ptr tcg_gen_ld_i64 +#endif