summaryrefslogtreecommitdiffstats
path: root/tcg/mips
diff options
context:
space:
mode:
authorAurelien Jarno2012-09-22 17:07:23 +0200
committerAurelien Jarno2012-09-22 17:07:23 +0200
commitad49d1f75115663731bfe06dec61eed6775526ad (patch)
tree107575dea56252ccfc925df60a8b3f8bf6de5725 /tcg/mips
parenttcg: Remove tcg_target_get_call_iarg_regs_count (diff)
downloadqemu-ad49d1f75115663731bfe06dec61eed6775526ad.tar.gz
qemu-ad49d1f75115663731bfe06dec61eed6775526ad.tar.xz
qemu-ad49d1f75115663731bfe06dec61eed6775526ad.zip
tcg/mips
Diffstat (limited to 'tcg/mips')
-rw-r--r--tcg/mips/tcg-target.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c
index f70910a90f..dc80abd637 100644
--- a/tcg/mips/tcg-target.c
+++ b/tcg/mips/tcg-target.c
@@ -1681,8 +1681,8 @@ static void tcg_target_qemu_prologue(TCGContext *s)
+ CPU_TEMP_BUF_NLONGS * sizeof(long);
frame_size = (frame_size + TCG_TARGET_STACK_ALIGN - 1) &
~(TCG_TARGET_STACK_ALIGN - 1);
- tcg_set_frame(s, TCG_REG_SP, ARRAY_SIZE(tcg_target_callee_save_regs) * 4
- + TCG_STATIC_CALL_ARGS_SIZE,
+ tcg_set_frame(s, TCG_REG_SP, frame_size
+ - CPU_TEMP_BUF_NLONGS * sizeof(long),
CPU_TEMP_BUF_NLONGS * sizeof(long));
/* TB prologue */