Revision f74b32de
b/tcg/ppc/tcg-target.c | ||
---|---|---|
907 | 907 |
+ LINKAGE_AREA_SIZE |
908 | 908 |
+ TCG_STATIC_CALL_ARGS_SIZE |
909 | 909 |
+ ARRAY_SIZE (tcg_target_callee_save_regs) * 4 |
910 |
+ CPU_TEMP_BUF_NLONGS * sizeof(long) |
|
910 | 911 |
; |
911 | 912 |
frame_size = (frame_size + 15) & ~15; |
912 | 913 |
|
914 |
tcg_set_frame(s, TCG_REG_CALL_STACK, frame_size |
|
915 |
- CPU_TEMP_BUF_NLONGS * sizeof(long), |
|
916 |
CPU_TEMP_BUF_NLONGS * sizeof(long)); |
|
917 |
|
|
913 | 918 |
#ifdef _CALL_AIX |
914 | 919 |
{ |
915 | 920 |
uint32_t addr; |
... | ... | |
1914 | 1919 |
#endif |
1915 | 1920 |
|
1916 | 1921 |
tcg_add_target_add_op_defs(ppc_op_defs); |
1917 |
tcg_set_frame(s, TCG_AREG0, offsetof(CPUState, temp_buf), |
|
1918 |
CPU_TEMP_BUF_NLONGS * sizeof(long)); |
|
1919 | 1922 |
} |
b/tcg/ppc64/tcg-target.c | ||
---|---|---|
875 | 875 |
+ 8 /* TOC save area */ |
876 | 876 |
+ TCG_STATIC_CALL_ARGS_SIZE |
877 | 877 |
+ ARRAY_SIZE (tcg_target_callee_save_regs) * 8 |
878 |
+ CPU_TEMP_BUF_NLONGS * sizeof(long) |
|
878 | 879 |
; |
879 | 880 |
frame_size = (frame_size + 15) & ~15; |
880 | 881 |
|
882 |
tcg_set_frame(s, TCG_REG_CALL_STACK, frame_size |
|
883 |
- CPU_TEMP_BUF_NLONGS * sizeof(long), |
|
884 |
CPU_TEMP_BUF_NLONGS * sizeof(long)); |
|
885 |
|
|
881 | 886 |
#ifndef __APPLE__ |
882 | 887 |
/* First emit adhoc function descriptor */ |
883 | 888 |
addr = (uint64_t) s->code_ptr + 24; |
... | ... | |
1691 | 1696 |
tcg_regset_set_reg (s->reserved_regs, TCG_REG_R13); |
1692 | 1697 |
|
1693 | 1698 |
tcg_add_target_add_op_defs (ppc_op_defs); |
1694 |
tcg_set_frame(s, TCG_AREG0, offsetof(CPUState, temp_buf), |
|
1695 |
CPU_TEMP_BUF_NLONGS * sizeof(long)); |
|
1696 | 1699 |
} |
Also available in: Unified diff