Revision 60bf84cf
b/dyngen-exec.h | ||
---|---|---|
59 | 59 |
#elif defined(__hppa__) |
60 | 60 |
#define AREG0 "r17" |
61 | 61 |
#elif defined(__mips__) |
62 |
#define AREG0 "fp"
|
|
62 |
#define AREG0 "s0"
|
|
63 | 63 |
#elif defined(__sparc__) |
64 | 64 |
#ifdef CONFIG_SOLARIS |
65 | 65 |
#define AREG0 "g2" |
b/tcg/mips/tcg-target.c | ||
---|---|---|
1450 | 1450 |
}; |
1451 | 1451 |
|
1452 | 1452 |
static int tcg_target_callee_save_regs[] = { |
1453 |
#if 0 /* used for the global env (TCG_AREG0), so no need to save */ |
|
1453 | 1454 |
TCG_REG_S0, |
1455 |
#endif |
|
1454 | 1456 |
TCG_REG_S1, |
1455 | 1457 |
TCG_REG_S2, |
1456 | 1458 |
TCG_REG_S3, |
... | ... | |
1459 | 1461 |
TCG_REG_S6, |
1460 | 1462 |
TCG_REG_S7, |
1461 | 1463 |
TCG_REG_GP, |
1462 |
/* TCG_REG_FP, */ /* currently used for the global env, so np |
|
1463 |
need to save */ |
|
1464 |
TCG_REG_FP, |
|
1464 | 1465 |
TCG_REG_RA, /* should be last for ABI compliance */ |
1465 | 1466 |
}; |
1466 | 1467 |
|
b/tcg/mips/tcg-target.h | ||
---|---|---|
97 | 97 |
#undef TCG_TARGET_HAS_ext16u_i32 /* andi rt, rs, 0xffff */ |
98 | 98 |
|
99 | 99 |
/* Note: must be synced with dyngen-exec.h */ |
100 |
#define TCG_AREG0 TCG_REG_FP
|
|
100 |
#define TCG_AREG0 TCG_REG_S0
|
|
101 | 101 |
|
102 | 102 |
/* guest base is supported */ |
103 | 103 |
#define TCG_TARGET_HAS_GUEST_BASE |
Also available in: Unified diff