/openbmc/qemu/target/riscv/ |
H A D | crypto_helper.c | 28 #define sext32_xlen(x) (target_ulong)(int32_t)(x) 30 static inline target_ulong aes32_operation(target_ulong shamt, in aes32_operation() 31 target_ulong rs1, target_ulong rs2, in aes32_operation() 36 target_ulong res; in aes32_operation() 57 target_ulong HELPER(aes32esmi)(target_ulong rs1, target_ulong rs2, in HELPER() 58 target_ulong shamt) in HELPER() 63 target_ulong HELPER(aes32esi)(target_ulong rs1, target_ulong rs2, in HELPER() 64 target_ulong shamt) in HELPER() 69 target_ulong HELPER(aes32dsmi)(target_ulong rs1, target_ulong rs2, in HELPER() 70 target_ulong shamt) in HELPER() [all …]
|
H A D | cpu.h | 57 #define RV(x) ((target_ulong)1 << (x - 'A')) 173 FIELD(VTYPE, RESERVED, 10, sizeof(target_ulong) * 8 - 11) 177 target_ulong mhpmcounter_val; 179 target_ulong mhpmcounterh_val; 181 target_ulong mhpmcounter_prev; 183 target_ulong mhpmcounterh_prev; 185 target_ulong irq_overflow_left; 198 target_ulong gpr[32]; 199 target_ulong gprh[32]; /* 64 top bits of the 128-bit registers */ 203 target_ulong vxrm; [all …]
|
H A D | bitmanip_helper.c | 27 target_ulong HELPER(clmul)(target_ulong rs1, target_ulong rs2) in HELPER() 29 target_ulong result = 0; in HELPER() 40 target_ulong HELPER(clmulr)(target_ulong rs1, target_ulong rs2) in HELPER() 42 target_ulong result = 0; in HELPER() 53 static inline target_ulong do_swap(target_ulong x, uint64_t mask, int shift) in do_swap() 58 target_ulong HELPER(brev8)(target_ulong rs1) in HELPER() 60 target_ulong x = rs1; in HELPER() 75 static inline target_ulong do_shuf_stage(target_ulong src, uint64_t maskL, in do_shuf_stage() 78 target_ulong x = src & ~(maskL | maskR); in do_shuf_stage() 84 target_ulong HELPER(unzip)(target_ulong rs1) in HELPER() [all …]
|
H A D | m128_helper.c | 25 target_ulong HELPER(divu_i128)(CPURISCVState *env, in HELPER() 26 target_ulong ul, target_ulong uh, in HELPER() 27 target_ulong vl, target_ulong vh) in HELPER() 29 target_ulong ql, qh; in HELPER() 45 target_ulong HELPER(remu_i128)(CPURISCVState *env, in HELPER() 46 target_ulong ul, target_ulong uh, in HELPER() 47 target_ulong vl, target_ulong vh) in HELPER() 49 target_ulong rl, rh; in HELPER() 65 target_ulong HELPER(divs_i128)(CPURISCVState *env, in HELPER() 66 target_ulong ul, target_ulong uh, in HELPER() [all …]
|
H A D | debug.c | 77 static inline target_ulong extract_trigger_type(CPURISCVState *env, in extract_trigger_type() 78 target_ulong tdata1) in extract_trigger_type() 91 static inline target_ulong get_trigger_type(CPURISCVState *env, in get_trigger_type() 92 target_ulong trigger_index) in get_trigger_type() 98 target_ulong trigger_index) in get_trigger_action() 100 target_ulong tdata1 = env->tdata1[trigger_index]; in get_trigger_action() 130 static inline target_ulong build_tdata1(CPURISCVState *env, in build_tdata1() 132 bool dmode, target_ulong data) in build_tdata1() 134 target_ulong tdata1; in build_tdata1() 166 target_ulong tselect_csr_read(CPURISCVState *env) in tselect_csr_read() [all …]
|
H A D | csr.c | 111 target_ulong ctr_mask; in ctr() 645 static int read_ssp(CPURISCVState *env, int csrno, target_ulong *val) in read_ssp() 651 static int write_ssp(CPURISCVState *env, int csrno, target_ulong val) in write_ssp() 659 target_ulong *val) in read_fflags() 666 target_ulong val) in write_fflags() 678 target_ulong *val) in read_frm() 685 target_ulong val) in write_frm() 697 target_ulong *val) in read_fcsr() 705 target_ulong val) in write_fcsr() 718 target_ulong *val) in read_vtype() [all …]
|
H A D | op_helper.c | 42 target_ulong helper_csrr(CPURISCVState *env, int csr) in helper_csrr() 53 target_ulong val = 0; in helper_csrr() 62 void helper_csrw(CPURISCVState *env, int csr, target_ulong src) in helper_csrw() 64 target_ulong mask = env->xl == MXL_RV32 ? UINT32_MAX : (target_ulong)-1; in helper_csrw() 72 target_ulong helper_csrrw(CPURISCVState *env, int csr, in helper_csrrw() 73 target_ulong src, target_ulong write_mask) in helper_csrrw() 75 target_ulong val = 0; in helper_csrrw() 84 target_ulong helper_csrr_i128(CPURISCVState *env, int csr) in helper_csrr_i128() 98 target_ulong srcl, target_ulong srch) in helper_csrw_i128() 109 target_ulong helper_csrrw_i128(CPURISCVState *env, int csr, in helper_csrrw_i128() [all …]
|
/openbmc/qemu/target/mips/tcg/ |
H A D | vr54xx_helper.c | 33 static inline target_ulong set_HIT0_LO(CPUMIPSState *env, uint64_t HILO) in set_HIT0_LO() 39 static inline target_ulong set_HI_LOT0(CPUMIPSState *env, uint64_t HILO) in set_HI_LOT0() 41 target_ulong tmp = env->active_tc.LO[0] = (int32_t)(HILO & 0xFFFFFFFF); in set_HI_LOT0() 47 target_ulong helper_muls(CPUMIPSState *env, target_ulong arg1, in helper_muls() 48 target_ulong arg2) in helper_muls() 54 target_ulong helper_mulsu(CPUMIPSState *env, target_ulong arg1, in helper_mulsu() 55 target_ulong arg2) in helper_mulsu() 61 target_ulong helper_macc(CPUMIPSState *env, target_ulong arg1, in helper_macc() 62 target_ulong arg2) in helper_macc() 68 target_ulong helper_macchi(CPUMIPSState *env, target_ulong arg1, in helper_macchi() [all …]
|
H A D | ldst_helper.c | 34 target_ulong helper_##name(CPUMIPSState *env, target_ulong arg, int mem_idx) \ 50 HELPER_LD_ATOMIC(lld, ldq, 0x7, (target_ulong)) 56 static inline target_ulong get_lmask(CPUMIPSState *env, in get_lmask() 57 target_ulong value, unsigned bits) in get_lmask() 70 void helper_swl(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, in helper_swl() 73 target_ulong lmask = get_lmask(env, arg2, 32); in helper_swl() 94 void helper_swr(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, in helper_swr() 97 target_ulong lmask = get_lmask(env, arg2, 32); in helper_swr() 124 void helper_sdl(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, in helper_sdl() 127 target_ulong lmask = get_lmask(env, arg2, 64); in helper_sdl() [all …]
|
H A D | op_helper.c | 29 static inline target_ulong bitswap(target_ulong v) in bitswap() 31 v = ((v >> 1) & (target_ulong)0x5555555555555555ULL) | in bitswap() 32 ((v & (target_ulong)0x5555555555555555ULL) << 1); in bitswap() 33 v = ((v >> 2) & (target_ulong)0x3333333333333333ULL) | in bitswap() 34 ((v & (target_ulong)0x3333333333333333ULL) << 2); in bitswap() 35 v = ((v >> 4) & (target_ulong)0x0F0F0F0F0F0F0F0FULL) | in bitswap() 36 ((v & (target_ulong)0x0F0F0F0F0F0F0F0FULL) << 4); in bitswap() 41 target_ulong helper_dbitswap(target_ulong rt) in helper_dbitswap() 47 target_ulong helper_bitswap(target_ulong rt) in helper_bitswap() 52 target_ulong helper_rotx(target_ulong rs, uint32_t shift, uint32_t shiftx, in helper_rotx() [all …]
|
H A D | dsp_helper.c | 57 env->active_tc.DSPControl |= (target_ulong)flag << position; in set_DSPControl_overflow_flag() 79 env->active_tc.DSPControl |= (target_ulong)flag << 24; in set_DSPControl_24() 84 target_ulong dspc; in set_DSPControl_pos() 99 target_ulong dspc; in get_DSPControl_pos() 116 env->active_tc.DSPControl |= (target_ulong)flag << 14; in set_DSPControl_efi() 398 static inline uint8_t mipsdsp_rshift_u8(uint8_t a, target_ulong mov) in mipsdsp_rshift_u8() 403 static inline uint16_t mipsdsp_rshift_u16(uint16_t a, target_ulong mov) in mipsdsp_rshift_u16() 408 static inline int8_t mipsdsp_rashift8(int8_t a, target_ulong mov) in mipsdsp_rashift8() 413 static inline int16_t mipsdsp_rashift16(int16_t a, target_ulong mov) in mipsdsp_rashift16() 419 static inline int32_t mipsdsp_rashift32(int32_t a, target_ulong mov) in mipsdsp_rashift32() [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_hcall.c | 45 static target_ulong resize_hpt_convert_rc(int ret) in resize_hpt_convert_rc() 81 static target_ulong h_resize_hpt_prepare(PowerPCCPU *cpu, in h_resize_hpt_prepare() 83 target_ulong opcode, in h_resize_hpt_prepare() 84 target_ulong *args) in h_resize_hpt_prepare() 86 target_ulong flags = args[0]; in h_resize_hpt_prepare() 164 static target_ulong h_resize_hpt_commit(PowerPCCPU *cpu, in h_resize_hpt_commit() 166 target_ulong opcode, in h_resize_hpt_commit() 167 target_ulong *args) in h_resize_hpt_commit() 169 target_ulong flags = args[0]; in h_resize_hpt_commit() 170 target_ulong shift = args[1]; in h_resize_hpt_commit() [all …]
|
H A D | spapr_vhyp_mmu.c | 19 static target_ulong h_enter(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_enter() 20 target_ulong opcode, target_ulong *args) in h_enter() 22 target_ulong flags = args[0]; in h_enter() 23 target_ulong ptex = args[1]; in h_enter() 24 target_ulong pteh = args[2]; in h_enter() 25 target_ulong ptel = args[3]; in h_enter() 27 target_ulong raddr; in h_enter() 28 target_ulong slot; in h_enter() 45 target_ulong wimg_flags; in h_enter() 101 , target_ulong ptex, in remove_hpte() [all …]
|
H A D | spapr_rtas.c | 56 target_ulong args, in rtas_display_character() 57 uint32_t nret, target_ulong rets) in rtas_display_character() 71 uint32_t token, uint32_t nargs, target_ulong args, in rtas_power_off() 72 uint32_t nret, target_ulong rets) in rtas_power_off() 85 target_ulong args, in rtas_system_reboot() 86 uint32_t nret, target_ulong rets) in rtas_system_reboot() 99 target_ulong args, in rtas_query_cpu_stopped_state() 100 uint32_t nret, target_ulong rets) in rtas_query_cpu_stopped_state() 102 target_ulong id; in rtas_query_cpu_stopped_state() 129 target_ulong args, in rtas_start_cpu() [all …]
|
/openbmc/qemu/include/semihosting/ |
H A D | syscalls.h | 26 target_ulong fname, target_ulong fname_len, 33 int fd, target_ulong buf, target_ulong len); 36 GuestFD *gf, target_ulong buf, target_ulong len); 39 int fd, target_ulong buf, target_ulong len); 42 GuestFD *gf, target_ulong buf, target_ulong len); 52 int fd, target_ulong fstat_addr); 55 int fd, target_ulong addr); 58 target_ulong fname, target_ulong fname_len, 59 target_ulong addr); 62 target_ulong fname, target_ulong fname_len); [all …]
|
/openbmc/qemu/target/loongarch/tcg/ |
H A D | op_helper.c | 26 target_ulong helper_bitrev_w(target_ulong rj) in helper_bitrev_w() 31 target_ulong helper_bitrev_d(target_ulong rj) in helper_bitrev_d() 36 target_ulong helper_bitswap(target_ulong v) in helper_bitswap() 38 v = ((v >> 1) & (target_ulong)0x5555555555555555ULL) | in helper_bitswap() 39 ((v & (target_ulong)0x5555555555555555ULL) << 1); in helper_bitswap() 40 v = ((v >> 2) & (target_ulong)0x3333333333333333ULL) | in helper_bitswap() 41 ((v & (target_ulong)0x3333333333333333ULL) << 2); in helper_bitswap() 42 v = ((v >> 4) & (target_ulong)0x0F0F0F0F0F0F0F0FULL) | in helper_bitswap() 43 ((v & (target_ulong)0x0F0F0F0F0F0F0F0FULL) << 4); in helper_bitswap() 48 void helper_asrtle_d(CPULoongArchState *env, target_ulong rj, target_ulong rk) in helper_asrtle_d() [all …]
|
H A D | iocsr_helper.c | 18 uint64_t helper_iocsrrd_b(CPULoongArchState *env, target_ulong r_addr) in helper_iocsrrd_b() 24 uint64_t helper_iocsrrd_h(CPULoongArchState *env, target_ulong r_addr) in helper_iocsrrd_h() 30 uint64_t helper_iocsrrd_w(CPULoongArchState *env, target_ulong r_addr) in helper_iocsrrd_w() 36 uint64_t helper_iocsrrd_d(CPULoongArchState *env, target_ulong r_addr) in helper_iocsrrd_d() 42 void helper_iocsrwr_b(CPULoongArchState *env, target_ulong w_addr, in helper_iocsrwr_b() 43 target_ulong val) in helper_iocsrwr_b() 49 void helper_iocsrwr_h(CPULoongArchState *env, target_ulong w_addr, in helper_iocsrwr_h() 50 target_ulong val) in helper_iocsrwr_h() 56 void helper_iocsrwr_w(CPULoongArchState *env, target_ulong w_addr, in helper_iocsrwr_w() 57 target_ulong val) in helper_iocsrwr_w() [all …]
|
/openbmc/qemu/linux-user/hppa/ |
H A D | target_syscall.h | 5 target_ulong gr[32]; 7 target_ulong sr[8]; 8 target_ulong iasq[2]; 9 target_ulong iaoq[2]; 10 target_ulong cr27; 11 target_ulong __pad0; 12 target_ulong orig_r28; 13 target_ulong ksp; 14 target_ulong kpc; 15 target_ulong sar; [all …]
|
/openbmc/qemu/target/mips/tcg/sysemu/ |
H A D | cp0_helper.c | 155 target_ulong v) in sync_c0_tcstatus() 229 target_ulong helper_mfc0_mvpcontrol(CPUMIPSState *env) in helper_mfc0_mvpcontrol() 234 target_ulong helper_mfc0_mvpconf0(CPUMIPSState *env) in helper_mfc0_mvpconf0() 239 target_ulong helper_mfc0_mvpconf1(CPUMIPSState *env) in helper_mfc0_mvpconf1() 244 target_ulong helper_mfc0_random(CPUMIPSState *env) in helper_mfc0_random() 249 target_ulong helper_mfc0_tcstatus(CPUMIPSState *env) in helper_mfc0_tcstatus() 254 target_ulong helper_mftc0_tcstatus(CPUMIPSState *env) in helper_mftc0_tcstatus() 266 target_ulong helper_mfc0_tcbind(CPUMIPSState *env) in helper_mfc0_tcbind() 271 target_ulong helper_mftc0_tcbind(CPUMIPSState *env) in helper_mftc0_tcbind() 283 target_ulong helper_mfc0_tcrestart(CPUMIPSState *env) in helper_mfc0_tcrestart() [all …]
|
/openbmc/qemu/semihosting/ |
H A D | syscalls.c | 25 static int validate_strlen(CPUState *cs, target_ulong str, target_ulong tlen) in validate_strlen() 54 target_ulong tstr, target_ulong tlen) in validate_lock_user_string() 74 static int copy_stat_to_user(CPUState *cs, target_ulong addr, in copy_stat_to_user() 131 target_ulong fname, target_ulong fname_len, in gdb_open() 153 GuestFD *gf, target_ulong buf, target_ulong len) in gdb_read() 160 GuestFD *gf, target_ulong buf, target_ulong len) in gdb_write() 180 GuestFD *gf, target_ulong addr) in gdb_fstat() 187 target_ulong fname, target_ulong fname_len, in gdb_stat() 188 target_ulong addr) in gdb_stat() 201 target_ulong fname, target_ulong fname_len) in gdb_remove() [all …]
|
/openbmc/qemu/include/hw/mips/ |
H A D | bootloader.h | 14 void bl_gen_jump_to(void **ptr, target_ulong jump_addr); 16 bool set_sp, target_ulong sp, 17 bool set_a0, target_ulong a0, 18 bool set_a1, target_ulong a1, 19 bool set_a2, target_ulong a2, 20 bool set_a3, target_ulong a3, 21 target_ulong kernel_addr); 22 void bl_gen_write_ulong(void **ptr, target_ulong addr, target_ulong val); 23 void bl_gen_write_u32(void **ptr, target_ulong addr, uint32_t val); 24 void bl_gen_write_u64(void **ptr, target_ulong addr, uint64_t val);
|
/openbmc/qemu/linux-user/loongarch64/ |
H A D | target_syscall.h | 18 target_ulong regs[32]; 22 target_ulong era; 23 target_ulong badv; 24 target_ulong crmd; 25 target_ulong prmd; 26 target_ulong euen; 27 target_ulong ecfg; 28 target_ulong estat; 30 target_ulong orig_a0; 31 target_ulong __last[0];
|
/openbmc/qemu/target/ppc/ |
H A D | timebase_helper.c | 30 target_ulong helper_load_tbl(CPUPPCState *env) in helper_load_tbl() 32 return (target_ulong)cpu_ppc_load_tbl(env); in helper_load_tbl() 35 target_ulong helper_load_tbu(CPUPPCState *env) in helper_load_tbu() 40 target_ulong helper_load_atbl(CPUPPCState *env) in helper_load_atbl() 42 return (target_ulong)cpu_ppc_load_atbl(env); in helper_load_atbl() 45 target_ulong helper_load_atbu(CPUPPCState *env) in helper_load_atbu() 50 target_ulong helper_load_vtb(CPUPPCState *env) in helper_load_vtb() 56 target_ulong helper_load_purr(CPUPPCState *env) in helper_load_purr() 58 return (target_ulong)cpu_ppc_load_purr(env); in helper_load_purr() 61 void helper_store_purr(CPUPPCState *env, target_ulong val) in helper_store_purr() [all …]
|
/openbmc/qemu/target/i386/tcg/ |
H A D | cc_helper.c | 45 static target_ulong compute_all_adcx(target_ulong dst, target_ulong src1, in compute_all_adcx() 46 target_ulong src2) in compute_all_adcx() 51 static target_ulong compute_all_adox(target_ulong dst, target_ulong src1, in compute_all_adox() 52 target_ulong src2) in compute_all_adox() 57 static target_ulong compute_all_adcox(target_ulong dst, target_ulong src1, in compute_all_adcox() 58 target_ulong src2) in compute_all_adcox() 63 target_ulong helper_cc_compute_nz(target_ulong dst, target_ulong src1, in helper_cc_compute_nz() 70 target_ulong mask = MAKE_64BIT_MASK(0, 8 << size); in helper_cc_compute_nz() 76 target_ulong helper_cc_compute_all(target_ulong dst, target_ulong src1, in helper_cc_compute_all() 77 target_ulong src2, int op) in helper_cc_compute_all() [all …]
|
/openbmc/qemu/target/i386/hvf/ |
H A D | x86_emu.h | 35 target_ulong read_reg(CPUX86State *env, int reg, int size); 36 void write_reg(CPUX86State *env, int reg, target_ulong val, int size); 37 target_ulong read_val_from_reg(target_ulong reg_ptr, int size); 38 void write_val_to_reg(target_ulong reg_ptr, target_ulong val, int size); 39 void write_val_ext(CPUX86State *env, target_ulong ptr, target_ulong val, int size); 40 uint8_t *read_mmio(CPUX86State *env, target_ulong ptr, int bytes); 41 target_ulong read_val_ext(CPUX86State *env, target_ulong ptr, int size);
|