~ubuntu-branches/debian/jessie/qemu/jessie

« back to all changes in this revision

Viewing changes to tcg/ppc/tcg-target.c

  • Committer: Package Import Robot
  • Author(s): Vagrant Cascadian
  • Date: 2011-10-03 12:29:18 UTC
  • mfrom: (1.2.13) (10.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20111003122918-zc4kv6epchrbgdta
Tags: 0.15.0+dfsg-1
* New upstream version.
* Install new qemu-system, qemu-user and qemu-user-static variants: 
  lm32, microblazeel, s390x, unicore32
* Patch from upstream to set QEMU_INCLUDES before QEMU_CFLAGS.
* Update debian/watch to check http://qemu.org/download.

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
    TCG_REG_R24,
161
161
    TCG_REG_R25,
162
162
    TCG_REG_R26,
163
 
    /* TCG_REG_R27, */ /* currently used for the global env, so no
164
 
                          need to save */
 
163
    TCG_REG_R27, /* currently used for the global env */
165
164
    TCG_REG_R28,
166
165
    TCG_REG_R29,
167
166
    TCG_REG_R30,
908
907
        + LINKAGE_AREA_SIZE
909
908
        + TCG_STATIC_CALL_ARGS_SIZE
910
909
        + ARRAY_SIZE (tcg_target_callee_save_regs) * 4
 
910
        + CPU_TEMP_BUF_NLONGS * sizeof(long)
911
911
        ;
912
912
    frame_size = (frame_size + 15) & ~15;
913
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
 
914
918
#ifdef _CALL_AIX
915
919
    {
916
920
        uint32_t addr;
939
943
    }
940
944
#endif
941
945
 
942
 
    tcg_out32 (s, MTSPR | RS (3) | CTR);
 
946
    tcg_out_mov (s, TCG_TYPE_PTR, TCG_AREG0, tcg_target_call_iarg_regs[0]);
 
947
    tcg_out32 (s, MTSPR | RS (tcg_target_call_iarg_regs[1]) | CTR);
943
948
    tcg_out32 (s, BCCTR | BO_ALWAYS);
944
949
    tb_ret_addr = s->code_ptr;
945
950
 
982
987
    }
983
988
}
984
989
 
985
 
static void tcg_out_addi(TCGContext *s, int reg, tcg_target_long val)
986
 
{
987
 
    ppc_addi (s, reg, reg, val);
988
 
}
989
 
 
990
990
static void tcg_out_cmp (TCGContext *s, int cond, TCGArg arg1, TCGArg arg2,
991
991
                         int const_arg2, int cr)
992
992
{