Revision fb79ceb9 target-sparc/translate.c
b/target-sparc/translate.c | ||
---|---|---|
2175 | 2175 |
goto priv_insn; |
2176 | 2176 |
tcg_gen_helper_1_0(helper_rdpsr, cpu_dst); |
2177 | 2177 |
#else |
2178 |
CHECK_IU_FEATURE(dc, HYPV); |
|
2178 | 2179 |
if (!hypervisor(dc)) |
2179 | 2180 |
goto priv_insn; |
2180 | 2181 |
rs1 = GET_FIELD(insn, 13, 17); |
... | ... | |
2325 | 2326 |
tcg_gen_ext_i32_tl(cpu_tmp0, cpu_tmp32); |
2326 | 2327 |
break; |
2327 | 2328 |
case 16: // UA2005 gl |
2329 |
CHECK_IU_FEATURE(dc, GL); |
|
2328 | 2330 |
tcg_gen_ld_i32(cpu_tmp32, cpu_env, |
2329 | 2331 |
offsetof(CPUSPARCState, gl)); |
2330 | 2332 |
tcg_gen_ext_i32_tl(cpu_tmp0, cpu_tmp32); |
2331 | 2333 |
break; |
2332 | 2334 |
case 26: // UA2005 strand status |
2335 |
CHECK_IU_FEATURE(dc, HYPV); |
|
2333 | 2336 |
if (!hypervisor(dc)) |
2334 | 2337 |
goto priv_insn; |
2335 | 2338 |
tcg_gen_ld_i32(cpu_tmp32, cpu_env, |
... | ... | |
3431 | 3434 |
wstate)); |
3432 | 3435 |
break; |
3433 | 3436 |
case 16: // UA2005 gl |
3437 |
CHECK_IU_FEATURE(dc, GL); |
|
3434 | 3438 |
tcg_gen_trunc_tl_i32(cpu_tmp32, cpu_tmp0); |
3435 | 3439 |
tcg_gen_st_i32(cpu_tmp32, cpu_env, |
3436 | 3440 |
offsetof(CPUSPARCState, gl)); |
3437 | 3441 |
break; |
3438 | 3442 |
case 26: // UA2005 strand status |
3443 |
CHECK_IU_FEATURE(dc, HYPV); |
|
3439 | 3444 |
if (!hypervisor(dc)) |
3440 | 3445 |
goto priv_insn; |
3441 | 3446 |
tcg_gen_trunc_tl_i32(cpu_tmp32, cpu_tmp0); |
... | ... | |
3461 | 3466 |
tcg_gen_st_tl(cpu_tmp0, cpu_env, |
3462 | 3467 |
offsetof(CPUSPARCState, tbr)); |
3463 | 3468 |
#else |
3469 |
CHECK_IU_FEATURE(dc, HYPV); |
|
3464 | 3470 |
if (!hypervisor(dc)) |
3465 | 3471 |
goto priv_insn; |
3466 | 3472 |
tcg_gen_xor_tl(cpu_tmp0, cpu_src1, cpu_src2); |
Also available in: Unified diff