Revision 2a6a665f tcg/hppa/tcg-target.c

b/tcg/hppa/tcg-target.c
1612 1612
    /* Allocate space for the saved registers.  */
1613 1613
    frame_size += ARRAY_SIZE(tcg_target_callee_save_regs) * 4;
1614 1614

  
1615
    /* Allocate space for the TCG temps. */
1616
    frame_size += CPU_TEMP_BUF_NLONGS * sizeof(long);
1617

  
1615 1618
    /* Align the allocated space.  */
1616 1619
    frame_size = ((frame_size + TCG_TARGET_STACK_ALIGN - 1)
1617 1620
                  & -TCG_TARGET_STACK_ALIGN);
......
1629 1632
                   TCG_REG_CALL_STACK, -frame_size + i * 4);
1630 1633
    }
1631 1634

  
1635
    /* Record the location of the TCG temps.  */
1636
    tcg_set_frame(s, TCG_REG_CALL_STACK, -frame_size + i * 4,
1637
                  TCG_TEMP_BUF_NLONGS * sizeof(long));
1638

  
1632 1639
#ifdef CONFIG_USE_GUEST_BASE
1633 1640
    if (GUEST_BASE != 0) {
1634 1641
        tcg_out_movi(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, GUEST_BASE);
......
1684 1691
    tcg_regset_set_reg(s->reserved_regs, TCG_REG_R31); /* ble link reg */
1685 1692

  
1686 1693
    tcg_add_target_add_op_defs(hppa_op_defs);
1687
    tcg_set_frame(s, TCG_AREG0, offsetof(CPUState, temp_buf),
1688
                  CPU_TEMP_BUF_NLONGS * sizeof(long));
1689 1694
}

Also available in: Unified diff