Revision 515e2f7e target-ppc/translate_init.c
b/target-ppc/translate_init.c | ||
---|---|---|
452 | 452 |
static void spr_read_spefscr (void *opaque, int gprn, int sprn) |
453 | 453 |
{ |
454 | 454 |
TCGv_i32 t0 = tcg_temp_new_i32(); |
455 |
tcg_gen_ld_tl(t0, cpu_env, offsetof(CPUState, spe_fscr));
|
|
455 |
tcg_gen_ld_i32(t0, cpu_env, offsetof(CPUState, spe_fscr));
|
|
456 | 456 |
tcg_gen_extu_i32_tl(cpu_gpr[gprn], t0); |
457 | 457 |
tcg_temp_free_i32(t0); |
458 | 458 |
} |
... | ... | |
461 | 461 |
{ |
462 | 462 |
TCGv_i32 t0 = tcg_temp_new_i32(); |
463 | 463 |
tcg_gen_trunc_tl_i32(t0, cpu_gpr[gprn]); |
464 |
tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, spe_fscr));
|
|
464 |
tcg_gen_st_i32(t0, cpu_env, offsetof(CPUState, spe_fscr));
|
|
465 | 465 |
tcg_temp_free_i32(t0); |
466 | 466 |
} |
467 | 467 |
|
Also available in: Unified diff