/qemu/target/riscv/ |
H A D | instmap.h | 302 #define GET_B_IMM(inst) ((extract32(inst, 8, 4) << 1) \ argument 303 | (extract32(inst, 25, 6) << 5) \ 304 | (extract32(inst, 7, 1) << 11) \ 305 | (sextract64(inst, 31, 1) << 12)) 307 #define GET_STORE_IMM(inst) ((extract32(inst, 7, 5)) \ argument 308 | (sextract64(inst, 25, 7) << 5)) 310 #define GET_JAL_IMM(inst) ((extract32(inst, 21, 10) << 1) \ argument 311 | (extract32(inst, 20, 1) << 11) \ 312 | (extract32(inst, 12, 8) << 12) \ 313 | (sextract64(inst, 31, 1) << 20)) [all …]
|
H A D | csr.c | 1236 int inst = riscv_pmu_ctr_monitor_instructions(env, counter_idx); in riscv_pmu_ctr_get_fixed_counters_val() local 1237 uint64_t *counter_arr_virt = env->pmu_fixed_ctrs[inst].counter_virt; in riscv_pmu_ctr_get_fixed_counters_val() 1238 uint64_t *counter_arr = env->pmu_fixed_ctrs[inst].counter; in riscv_pmu_ctr_get_fixed_counters_val() 1258 curr_val = inst ? icount_get_raw() : icount_get(); in riscv_pmu_ctr_get_fixed_counters_val()
|
/qemu/disas/ |
H A D | riscv-xthead.c | 251 rv_inst inst = dec->inst; in decode_xtheadba() local 254 switch (((inst >> 0) & 0b11)) { in decode_xtheadba() 256 switch (((inst >> 2) & 0b11111)) { in decode_xtheadba() 259 switch ((inst >> 12) & 0b111) { in decode_xtheadba() 261 switch ((inst >> 25) & 0b1111111) { in decode_xtheadba() 280 rv_inst inst = dec->inst; in decode_xtheadbb() local 283 switch (((inst >> 0) & 0b11)) { in decode_xtheadbb() 285 switch (((inst >> 2) & 0b11111)) { in decode_xtheadbb() 288 switch ((inst >> 12) & 0b111) { in decode_xtheadbb() 290 switch ((inst >> 25) & 0b1111111) { in decode_xtheadbb() [all …]
|
H A D | riscv.c | 2543 rv_inst inst = dec->inst; in decode_inst_opcode() local 2545 switch ((inst >> 0) & 0b11) { in decode_inst_opcode() 2547 switch ((inst >> 13) & 0b111) { in decode_inst_opcode() 2565 switch ((inst >> 10) & 0b111) { in decode_inst_opcode() 2568 if (((inst >> 6) & 1) == 0) { in decode_inst_opcode() 2576 if (((inst >> 6) & 1) == 0) { in decode_inst_opcode() 2600 switch ((inst >> 13) & 0b111) { in decode_inst_opcode() 2602 switch ((inst >> 2) & 0b11111111111) { in decode_inst_opcode() 2617 if ((((inst >> 2) & 0b111111) == 0b100000) && in decode_inst_opcode() 2618 (((inst >> 11) & 0b11) == 0b0)) { in decode_inst_opcode() [all …]
|
H A D | riscv-xventana.c | 25 rv_inst inst = dec->inst; in decode_xventanacondops() local 28 switch (((inst >> 0) & 0b11)) { in decode_xventanacondops() 30 switch (((inst >> 2) & 0b11111)) { in decode_xventanacondops() 32 switch (((inst >> 22) & 0b1111111000) | ((inst >> 12) & 0b0000000111)) { in decode_xventanacondops()
|
H A D | microblaze.c | 647 unsigned long inst; in read_insn_microblaze() local 658 inst = ((unsigned)ibytes[0] << 24) | (ibytes[1] << 16) in read_insn_microblaze() 661 inst = ((unsigned)ibytes[3] << 24) | (ibytes[2] << 16) in read_insn_microblaze() 668 if (op->bit_sequence == (inst & op->opcode_mask)) in read_insn_microblaze() 672 return inst; in read_insn_microblaze() 676 int immval, unsigned inst, int addend) in print_immval_addr() argument 680 immval |= get_int_field_imm(inst) & 0x0000ffff; in print_immval_addr() 682 immval = (int16_t)get_int_field_imm(inst); in print_immval_addr() 699 unsigned long inst, prev_inst; in print_insn_microblaze() local 711 inst = read_insn_microblaze (memaddr, info, &op); in print_insn_microblaze() [all …]
|
H A D | riscv.h | 194 uint64_t inst; member
|
/qemu/hw/ppc/ |
H A D | vof.c | 432 OfInstance *inst = NULL; in vof_do_open() local 439 inst = g_new0(OfInstance, 1); in vof_do_open() 440 inst->phandle = fdt_get_phandle(fdt, offset); in vof_do_open() 441 g_assert(inst->phandle); in vof_do_open() 444 inst->path = g_strdup(path); in vof_do_open() 447 inst); in vof_do_open() 451 trace_vof_open(path, inst ? inst->phandle : 0, ret); in vof_do_open() 460 uint32_t inst; in vof_client_open_store() local 468 inst = vof_do_open(fdt, vof, offset, path); in vof_client_open_store() 470 return fdt_setprop_cell(fdt, node, prop, inst) >= 0 ? 0 : PROM_ERROR; in vof_client_open_store() [all …]
|
/qemu/target/hexagon/idef-parser/ |
H A D | parser-helpers.c | 40 fprintf(stderr, "WARNING (%s): '%s'\n", c->inst.name->str, s); in yyerror() 66 c->inst.error_count++; in yyerror() 255 for (char *x = c->inst.code_begin; x < c->inst.code_end; x++) { in commit() 293 rvalue.tmp.index = c->inst.tmp_count; in gen_constant() 294 OUT(c, locp, "TCGv_i", &bit_width, " tmp_", &c->inst.tmp_count, in gen_constant() 296 c->inst.tmp_count++; in gen_constant() 313 rvalue.tmp.index = c->inst.tmp_count; in gen_tmp() 314 OUT(c, locp, "TCGv_i", &bit_width, " tmp_", &c->inst.tmp_count, in gen_tmp() 316 c->inst.tmp_count++; in gen_tmp() 331 rvalue.tmp.index = c->inst.tmp_count; in gen_constant_from_imm() [all …]
|
H A D | idef-parser.h | 238 Inst inst; /**< Parsing data of the current inst */ member
|
H A D | idef-parser.y | 223 c->inst.code_begin = c->input_buffer + @2.first_column - 1; 224 c->inst.code_end = c->input_buffer + @2.last_column - 1; 241 g_array_append_val(c->inst.init_list, $1);
|
/qemu/target/s390x/tcg/ |
H A D | misc_helper.c | 461 void HELPER(msch)(CPUS390XState *env, uint64_t r1, uint64_t inst) in HELPER() 465 ioinst_handle_msch(cpu, r1, inst >> 16, GETPC()); in HELPER() 494 void HELPER(schm)(CPUS390XState *env, uint64_t r1, uint64_t r2, uint64_t inst) in HELPER() 499 ioinst_handle_schm(cpu, r1, r2, inst >> 16, GETPC()); in HELPER() 503 void HELPER(ssch)(CPUS390XState *env, uint64_t r1, uint64_t inst) in HELPER() 507 ioinst_handle_ssch(cpu, r1, inst >> 16, GETPC()); in HELPER() 511 void HELPER(stcrw)(CPUS390XState *env, uint64_t inst) in HELPER() 516 ioinst_handle_stcrw(cpu, inst >> 16, GETPC()); in HELPER() 520 void HELPER(stsch)(CPUS390XState *env, uint64_t r1, uint64_t inst) in HELPER() 524 ioinst_handle_stsch(cpu, r1, inst >> 16, GETPC()); in HELPER() [all …]
|
/qemu/tcg/mips/ |
H A D | tcg-target.c.inc | 376 int32_t inst; 378 inst = opc; 379 inst |= (rs & 0x1F) << 21; 380 inst |= (rt & 0x1F) << 16; 381 inst |= (rd & 0x1F) << 11; 382 tcg_out32(s, inst); 391 int32_t inst; 393 inst = opc; 394 inst |= (rs & 0x1F) << 21; 395 inst |= (rt & 0x1F) << 16; [all …]
|
/qemu/hw/s390x/ |
H A D | meson.build | 12 's390-pci-inst.c',
|
H A D | trace-events | 29 # s390-pci-inst.c
|
/qemu/qom/ |
H A D | object.c | 912 Object *inst; in object_dynamic_cast_assert() local 920 inst = object_dynamic_cast(obj, typename); in object_dynamic_cast_assert() 922 if (!inst && obj) { in object_dynamic_cast_assert() 928 assert(obj == inst); in object_dynamic_cast_assert() 930 if (obj && obj == inst) { in object_dynamic_cast_assert()
|
/qemu/scripts/ |
H A D | replay-dump.py | 436 except Exception as inst:
|
H A D | dump-guest-memory.py | 21 except Exception as inst:
|