/dports/sysutils/intel-pcm-devel/pcm-0212b38/ |
H A D | msrtest.cpp | 28 MsrHandle * cpu_msr[NUM_CORES]; in main() local 32 cpu_msr[i] = new MsrHandle(i); in main() 33 assert(cpu_msr[i]); in main() 36 res = cpu_msr[i]->read(IA32_CR_FIXED_CTR_CTRL, &ctrl_reg.value); in main() 54 res = cpu_msr[i]->write(IA32_CR_FIXED_CTR_CTRL, ctrl_reg.value); in main() 59 res = cpu_msr[i]->write(IA32_CR_PERF_GLOBAL_CTRL, value); in main() 67 res = cpu_msr[i]->read(INST_RETIRED_ADDR, &counters_before[i][0]); in main() 71 res = cpu_msr[i]->read(CPU_CLK_UNHALTED_REF_ADDR, &counters_before[i][2]); in main() 78 res = cpu_msr[i]->read(INST_RETIRED_ADDR, &counters_after[i][0]); in main() 82 res = cpu_msr[i]->read(CPU_CLK_UNHALTED_REF_ADDR, &counters_after[i][2]); in main() [all …]
|
/dports/sysutils/intel-pcm/pcm-202109/ |
H A D | msrtest.cpp | 28 MsrHandle * cpu_msr[NUM_CORES]; in main() local 32 cpu_msr[i] = new MsrHandle(i); in main() 33 assert(cpu_msr[i]); in main() 36 res = cpu_msr[i]->read(IA32_CR_FIXED_CTR_CTRL, &ctrl_reg.value); in main() 54 res = cpu_msr[i]->write(IA32_CR_FIXED_CTR_CTRL, ctrl_reg.value); in main() 59 res = cpu_msr[i]->write(IA32_CR_PERF_GLOBAL_CTRL, value); in main() 67 res = cpu_msr[i]->read(INST_RETIRED_ADDR, &counters_before[i][0]); in main() 71 res = cpu_msr[i]->read(CPU_CLK_UNHALTED_REF_ADDR, &counters_before[i][2]); in main() 78 res = cpu_msr[i]->read(INST_RETIRED_ADDR, &counters_after[i][0]); in main() 82 res = cpu_msr[i]->read(CPU_CLK_UNHALTED_REF_ADDR, &counters_after[i][2]); in main() [all …]
|
/dports/emulators/qemu5/qemu-5.2.0/target/microblaze/ |
H A D | translate.c | 1193 tcg_gen_ori_i32(cpu_msr, cpu_msr, MSR_BIP); in DO_BCC() 1237 tcg_gen_andi_i32(cpu_msr, cpu_msr, in trans_brki() 1240 tcg_gen_ori_i32(cpu_msr, cpu_msr, msr_to_set); in trans_brki() 1378 tcg_gen_ori_i32(cpu_msr, cpu_msr, imm); in do_msrclrset() 1380 tcg_gen_andi_i32(cpu_msr, cpu_msr, ~imm); in do_msrclrset() 1557 tcg_gen_ori_i32(cpu_msr, cpu_msr, MSR_IE); in do_rti() 1559 tcg_gen_andi_i32(cpu_msr, cpu_msr, ~(MSR_VM | MSR_UM)); in do_rti() 1560 tcg_gen_or_i32(cpu_msr, cpu_msr, tmp); in do_rti() 1572 tcg_gen_or_i32(cpu_msr, cpu_msr, tmp); in do_rtb() 1582 tcg_gen_ori_i32(cpu_msr, cpu_msr, MSR_EE); in do_rte() [all …]
|
/dports/emulators/qemu-devel/qemu-de8ed1055c2ce18c95f597eb10df360dcb534f99/target/microblaze/ |
H A D | translate.c | 1183 tcg_gen_ori_i32(cpu_msr, cpu_msr, MSR_BIP); in DO_BCC() 1227 tcg_gen_andi_i32(cpu_msr, cpu_msr, in trans_brki() 1230 tcg_gen_ori_i32(cpu_msr, cpu_msr, msr_to_set); in trans_brki() 1368 tcg_gen_ori_i32(cpu_msr, cpu_msr, imm); in do_msrclrset() 1370 tcg_gen_andi_i32(cpu_msr, cpu_msr, ~imm); in do_msrclrset() 1547 tcg_gen_ori_i32(cpu_msr, cpu_msr, MSR_IE); in do_rti() 1549 tcg_gen_andi_i32(cpu_msr, cpu_msr, ~(MSR_VM | MSR_UM)); in do_rti() 1550 tcg_gen_or_i32(cpu_msr, cpu_msr, tmp); in do_rti() 1562 tcg_gen_or_i32(cpu_msr, cpu_msr, tmp); in do_rtb() 1572 tcg_gen_ori_i32(cpu_msr, cpu_msr, MSR_EE); in do_rte() [all …]
|
/dports/emulators/qemu/qemu-6.2.0/target/microblaze/ |
H A D | translate.c | 1194 tcg_gen_ori_i32(cpu_msr, cpu_msr, MSR_BIP); in DO_BCC() 1238 tcg_gen_andi_i32(cpu_msr, cpu_msr, in trans_brki() 1241 tcg_gen_ori_i32(cpu_msr, cpu_msr, msr_to_set); in trans_brki() 1379 tcg_gen_ori_i32(cpu_msr, cpu_msr, imm); in do_msrclrset() 1381 tcg_gen_andi_i32(cpu_msr, cpu_msr, ~imm); in do_msrclrset() 1558 tcg_gen_ori_i32(cpu_msr, cpu_msr, MSR_IE); in do_rti() 1560 tcg_gen_andi_i32(cpu_msr, cpu_msr, ~(MSR_VM | MSR_UM)); in do_rti() 1561 tcg_gen_or_i32(cpu_msr, cpu_msr, tmp); in do_rti() 1573 tcg_gen_or_i32(cpu_msr, cpu_msr, tmp); in do_rtb() 1583 tcg_gen_ori_i32(cpu_msr, cpu_msr, MSR_EE); in do_rte() [all …]
|
/dports/emulators/qemu60/qemu-6.0.0/target/microblaze/ |
H A D | translate.c | 1193 tcg_gen_ori_i32(cpu_msr, cpu_msr, MSR_BIP); in DO_BCC() 1237 tcg_gen_andi_i32(cpu_msr, cpu_msr, in trans_brki() 1240 tcg_gen_ori_i32(cpu_msr, cpu_msr, msr_to_set); in trans_brki() 1378 tcg_gen_ori_i32(cpu_msr, cpu_msr, imm); in do_msrclrset() 1380 tcg_gen_andi_i32(cpu_msr, cpu_msr, ~imm); in do_msrclrset() 1557 tcg_gen_ori_i32(cpu_msr, cpu_msr, MSR_IE); in do_rti() 1559 tcg_gen_andi_i32(cpu_msr, cpu_msr, ~(MSR_VM | MSR_UM)); in do_rti() 1560 tcg_gen_or_i32(cpu_msr, cpu_msr, tmp); in do_rti() 1572 tcg_gen_or_i32(cpu_msr, cpu_msr, tmp); in do_rtb() 1582 tcg_gen_ori_i32(cpu_msr, cpu_msr, MSR_EE); in do_rte() [all …]
|
/dports/sysutils/libcpuid/libcpuid-0.5.1/ |
H A D | configure.ac | 17 dnl 11:0:1 Version 0.1.2: added cpu_msr* functions
|
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/target/ppc/ |
H A D | translate.c | 68 static TCGv cpu_msr; variable 148 cpu_msr = tcg_global_mem_new(cpu_env, in ppc_translate_init() 4185 tcg_gen_mov_tl(cpu_gpr[rD(ctx->opcode)], cpu_msr); in gen_mfmsr() 4307 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(target_ulong)((1 << MSR_RI) | (1 << MSR_EE))); in gen_mtmsrd() 4308 tcg_gen_or_tl(cpu_msr, cpu_msr, t0); in gen_mtmsrd() 4334 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(target_ulong)((1 << MSR_RI) | (1 << MSR_EE))); in gen_mtmsr() 4335 tcg_gen_or_tl(cpu_msr, cpu_msr, t0); in gen_mtmsr() 6456 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE)); in gen_wrtee() 6457 tcg_gen_or_tl(cpu_msr, cpu_msr, t0); in gen_wrtee() 6474 tcg_gen_ori_tl(cpu_msr, cpu_msr, (1 << MSR_EE)); in gen_wrteei() [all …]
|
/dports/emulators/qemu-cheri/qemu-0a323821042c36e21ea80e58b9545dfc3b0cb8ef/target/ppc/ |
H A D | translate.c | 65 static TCGv cpu_msr; variable 112 cpu_msr = tcg_global_mem_new(cpu_env, in ppc_translate_init() 4244 tcg_gen_mov_tl(cpu_gpr[rD(ctx->opcode)], cpu_msr); in gen_mfmsr() 4369 tcg_gen_andi_tl(cpu_msr, cpu_msr, in gen_mtmsrd() 4371 tcg_gen_or_tl(cpu_msr, cpu_msr, t0); in gen_mtmsrd() 4402 tcg_gen_andi_tl(cpu_msr, cpu_msr, in gen_mtmsr() 4404 tcg_gen_or_tl(cpu_msr, cpu_msr, t0); in gen_mtmsr() 6554 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE)); in gen_wrtee() 6555 tcg_gen_or_tl(cpu_msr, cpu_msr, t0); in gen_wrtee() 6573 tcg_gen_ori_tl(cpu_msr, cpu_msr, (1 << MSR_EE)); in gen_wrteei() [all …]
|
/dports/emulators/qemu-utils/qemu-4.2.1/target/ppc/ |
H A D | translate.c | 65 static TCGv cpu_msr; variable 112 cpu_msr = tcg_global_mem_new(cpu_env, in ppc_translate_init() 4244 tcg_gen_mov_tl(cpu_gpr[rD(ctx->opcode)], cpu_msr); in gen_mfmsr() 4373 tcg_gen_andi_tl(t1, cpu_msr, in gen_mtmsrd() 4410 tcg_gen_andi_tl(t1, cpu_msr, in gen_mtmsr() 4428 tcg_gen_deposit_tl(msr, cpu_msr, cpu_gpr[rS(ctx->opcode)], 0, 32); in gen_mtmsr() 6562 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE)); in gen_wrtee() 6563 tcg_gen_or_tl(cpu_msr, cpu_msr, t0); in gen_wrtee() 6581 tcg_gen_ori_tl(cpu_msr, cpu_msr, (1 << MSR_EE)); in gen_wrteei() 6585 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE)); in gen_wrteei()
|
/dports/emulators/qemu5/qemu-5.2.0/target/ppc/ |
H A D | translate.c | 65 static TCGv cpu_msr; variable 112 cpu_msr = tcg_global_mem_new(cpu_env, in ppc_translate_init() 4299 tcg_gen_mov_tl(cpu_gpr[rD(ctx->opcode)], cpu_msr); in gen_mfmsr() 4428 tcg_gen_andi_tl(t1, cpu_msr, in gen_mtmsrd() 4465 tcg_gen_andi_tl(t1, cpu_msr, in gen_mtmsr() 4483 tcg_gen_deposit_tl(msr, cpu_msr, cpu_gpr[rS(ctx->opcode)], 0, 32); in gen_mtmsr() 6621 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE)); in gen_wrtee() 6622 tcg_gen_or_tl(cpu_msr, cpu_msr, t0); in gen_wrtee() 6640 tcg_gen_ori_tl(cpu_msr, cpu_msr, (1 << MSR_EE)); in gen_wrteei() 6644 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE)); in gen_wrteei()
|
/dports/emulators/qemu-guest-agent/qemu-5.0.1/target/ppc/ |
H A D | translate.c | 65 static TCGv cpu_msr; variable 112 cpu_msr = tcg_global_mem_new(cpu_env, in ppc_translate_init() 4244 tcg_gen_mov_tl(cpu_gpr[rD(ctx->opcode)], cpu_msr); in gen_mfmsr() 4373 tcg_gen_andi_tl(t1, cpu_msr, in gen_mtmsrd() 4410 tcg_gen_andi_tl(t1, cpu_msr, in gen_mtmsr() 4428 tcg_gen_deposit_tl(msr, cpu_msr, cpu_gpr[rS(ctx->opcode)], 0, 32); in gen_mtmsr() 6566 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE)); in gen_wrtee() 6567 tcg_gen_or_tl(cpu_msr, cpu_msr, t0); in gen_wrtee() 6585 tcg_gen_ori_tl(cpu_msr, cpu_msr, (1 << MSR_EE)); in gen_wrteei() 6589 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE)); in gen_wrteei()
|
/dports/emulators/qemu42/qemu-4.2.1/target/ppc/ |
H A D | translate.c | 65 static TCGv cpu_msr; variable 112 cpu_msr = tcg_global_mem_new(cpu_env, in ppc_translate_init() 4244 tcg_gen_mov_tl(cpu_gpr[rD(ctx->opcode)], cpu_msr); in gen_mfmsr() 4373 tcg_gen_andi_tl(t1, cpu_msr, in gen_mtmsrd() 4410 tcg_gen_andi_tl(t1, cpu_msr, in gen_mtmsr() 4428 tcg_gen_deposit_tl(msr, cpu_msr, cpu_gpr[rS(ctx->opcode)], 0, 32); in gen_mtmsr() 6562 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE)); in gen_wrtee() 6563 tcg_gen_or_tl(cpu_msr, cpu_msr, t0); in gen_wrtee() 6581 tcg_gen_ori_tl(cpu_msr, cpu_msr, (1 << MSR_EE)); in gen_wrteei() 6585 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE)); in gen_wrteei()
|
/dports/emulators/qemu60/qemu-6.0.0/target/ppc/ |
H A D | translate.c | 65 static TCGv cpu_msr; variable 112 cpu_msr = tcg_global_mem_new(cpu_env, in ppc_translate_init() 4299 tcg_gen_mov_tl(cpu_gpr[rD(ctx->opcode)], cpu_msr); in gen_mfmsr() 4428 tcg_gen_andi_tl(t1, cpu_msr, in gen_mtmsrd() 4465 tcg_gen_andi_tl(t1, cpu_msr, in gen_mtmsr() 4483 tcg_gen_deposit_tl(msr, cpu_msr, cpu_gpr[rS(ctx->opcode)], 0, 32); in gen_mtmsr() 6621 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE)); in gen_wrtee() 6622 tcg_gen_or_tl(cpu_msr, cpu_msr, t0); in gen_wrtee() 6640 tcg_gen_ori_tl(cpu_msr, cpu_msr, (1 << MSR_EE)); in gen_wrteei() 6644 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE)); in gen_wrteei()
|
/dports/emulators/qemu-devel/qemu-de8ed1055c2ce18c95f597eb10df360dcb534f99/target/ppc/ |
H A D | translate.c | 66 static TCGv cpu_msr; variable 113 cpu_msr = tcg_global_mem_new(cpu_env, in ppc_translate_init() 4826 tcg_gen_mov_tl(cpu_gpr[rD(ctx->opcode)], cpu_msr); in gen_mfmsr() 4949 tcg_gen_andi_tl(t1, cpu_msr, in gen_mtmsrd() 4984 tcg_gen_andi_tl(t1, cpu_msr, in gen_mtmsr() 5002 tcg_gen_deposit_tl(msr, cpu_msr, cpu_gpr[rS(ctx->opcode)], 0, 32); in gen_mtmsr() 7140 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE)); in gen_wrtee() 7141 tcg_gen_or_tl(cpu_msr, cpu_msr, t0); in gen_wrtee() 7159 tcg_gen_ori_tl(cpu_msr, cpu_msr, (1 << MSR_EE)); in gen_wrteei() 7163 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE)); in gen_wrteei()
|
/dports/emulators/qemu/qemu-6.2.0/target/ppc/ |
H A D | translate.c | 65 static TCGv cpu_msr; variable 112 cpu_msr = tcg_global_mem_new(cpu_env, in ppc_translate_init() 4690 tcg_gen_mov_tl(cpu_gpr[rD(ctx->opcode)], cpu_msr); in gen_mfmsr() 4830 tcg_gen_andi_tl(t1, cpu_msr, ~mask); in gen_mtmsrd() 4872 tcg_gen_andi_tl(t1, cpu_msr, ~mask); in gen_mtmsr() 7023 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE)); in gen_wrtee() 7024 tcg_gen_or_tl(cpu_msr, cpu_msr, t0); in gen_wrtee() 7042 tcg_gen_ori_tl(cpu_msr, cpu_msr, (1 << MSR_EE)); in gen_wrteei() 7046 tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE)); in gen_wrteei()
|