Skip to content
Snippets Groups Projects
Select Git revision
  • v1.1-rc0
  • master default
  • sp/trace-zero-ranges
  • stable-2.5
  • stable-2.4
  • stable-2.3
  • stable-2.2
  • stable-2.1
  • stable-2.0
  • stable-1.7
  • stable-1.6
  • stable-1.5
  • stable-1.4
  • stable-1.3
  • stable-1.2
  • stable-1.1
  • stable-1.0
  • stable-0.15
  • stable-0.14
  • stable-0.13
  • stable-0.12
  • v2.7.0-rc1
  • v2.7.0-rc0
  • v2.6.0
  • v2.5.1.1
  • v2.6.0-rc5
  • v2.6.0-rc4
  • v2.6.0-rc3
  • v2.6.0-rc2
  • v2.6.0-rc1
  • v2.6.0-rc0
  • v2.5.1
  • v2.5.0
  • v2.5.0-rc4
  • v2.5.0-rc3
  • v2.5.0-rc2
  • v2.5.0-rc1
  • v2.5.0-rc0
  • v2.4.1
  • v2.4.0.1
  • v2.3.1
41 results

helper.h

Blame
  • user avatar
    Andreas Färber authored
    Adopt the license text suggested by Guan Xue-tao (with a minor
    simplification) for all target-unicore/ files except helper.c.
    
    To helper.c Anthony Liguori contributed a qemu_malloc() -> g_malloc()
    conversion, still pending IBM relicensing approval, so that remains
    GPLv2 for now.
    
    By relicensing all possible parts now, we avoid having to formally
    relicense new, e.g., QOM code.
    
    Signed-off-by: default avatarAndreas Färber <afaerber@suse.de>
    Signed-off-by: default avatarGuan Xuetao <gxt@mprc.pku.edu.cn>
    Signed-off-by: default avatarStefan Weil <sw@weilnetz.de>
    Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
    Signed-off-by: default avatarDor Laor <dlaor@redhat.com>
    2b3bc6c0
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    helper.h 2.15 KiB
    /*
     * Copyright (C) 2010-2011 GUAN Xue-tao
     *
     * This program is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License version 2 as
     * published by the Free Software Foundation, or (at your option) any
     * later version. See the COPYING file in the top-level directory.
     */
    #include "def-helper.h"
    
    DEF_HELPER_1(clz, i32, i32)
    DEF_HELPER_1(clo, i32, i32)
    
    DEF_HELPER_1(exception, void, i32)
    
    DEF_HELPER_2(asr_write, void, i32, i32)
    DEF_HELPER_0(asr_read, i32)
    
    DEF_HELPER_3(set_cp0, void, env, i32, i32)
    DEF_HELPER_2(get_cp0, i32, env, i32)
    
    DEF_HELPER_3(set_cp, void, env, i32, i32)
    DEF_HELPER_2(get_cp, i32, env, i32)
    
    DEF_HELPER_1(get_user_reg, i32, i32)
    DEF_HELPER_2(set_user_reg, void, i32, i32)
    
    DEF_HELPER_2(add_cc, i32, i32, i32)
    DEF_HELPER_2(adc_cc, i32, i32, i32)
    DEF_HELPER_2(sub_cc, i32, i32, i32)
    DEF_HELPER_2(sbc_cc, i32, i32, i32)
    
    DEF_HELPER_2(shl, i32, i32, i32)
    DEF_HELPER_2(shr, i32, i32, i32)
    DEF_HELPER_2(sar, i32, i32, i32)
    DEF_HELPER_2(shl_cc, i32, i32, i32)
    DEF_HELPER_2(shr_cc, i32, i32, i32)
    DEF_HELPER_2(sar_cc, i32, i32, i32)
    DEF_HELPER_2(ror_cc, i32, i32, i32)
    
    DEF_HELPER_2(get_r29_banked, i32, env, i32)
    DEF_HELPER_3(set_r29_banked, void, env, i32, i32)
    
    DEF_HELPER_1(ucf64_get_fpscr, i32, env)
    DEF_HELPER_2(ucf64_set_fpscr, void, env, i32)
    
    DEF_HELPER_3(ucf64_adds, f32, f32, f32, env)
    DEF_HELPER_3(ucf64_addd, f64, f64, f64, env)
    DEF_HELPER_3(ucf64_subs, f32, f32, f32, env)
    DEF_HELPER_3(ucf64_subd, f64, f64, f64, env)
    DEF_HELPER_3(ucf64_muls, f32, f32, f32, env)
    DEF_HELPER_3(ucf64_muld, f64, f64, f64, env)
    DEF_HELPER_3(ucf64_divs, f32, f32, f32, env)
    DEF_HELPER_3(ucf64_divd, f64, f64, f64, env)
    DEF_HELPER_1(ucf64_negs, f32, f32)
    DEF_HELPER_1(ucf64_negd, f64, f64)
    DEF_HELPER_1(ucf64_abss, f32, f32)
    DEF_HELPER_1(ucf64_absd, f64, f64)
    DEF_HELPER_4(ucf64_cmps, void, f32, f32, i32, env)
    DEF_HELPER_4(ucf64_cmpd, void, f64, f64, i32, env)
    
    DEF_HELPER_2(ucf64_sf2df, f64, f32, env)
    DEF_HELPER_2(ucf64_df2sf, f32, f64, env)
    
    DEF_HELPER_2(ucf64_si2sf, f32, f32, env)
    DEF_HELPER_2(ucf64_si2df, f64, f32, env)
    
    DEF_HELPER_2(ucf64_sf2si, f32, f32, env)
    DEF_HELPER_2(ucf64_df2si, f32, f64, env)
    
    #include "def-helper.h"