Revision 6e87b7c7 target-ppc/translate.c
b/target-ppc/translate.c | ||
---|---|---|
6268 | 6268 |
|
6269 | 6269 |
GEN_HANDLER(mtvscr, 0x04, 0x2, 0x19, 0x03ff0000, PPC_ALTIVEC) |
6270 | 6270 |
{ |
6271 |
TCGv_i32 t;
|
|
6271 |
TCGv_ptr p;
|
|
6272 | 6272 |
if (unlikely(!ctx->altivec_enabled)) { |
6273 | 6273 |
gen_exception(ctx, POWERPC_EXCP_VPU); |
6274 | 6274 |
return; |
6275 | 6275 |
} |
6276 |
t = tcg_temp_new_i32(); |
|
6277 |
tcg_gen_trunc_i64_i32(t, cpu_avrl[rD(ctx->opcode)]); |
|
6278 |
tcg_gen_st_i32(t, cpu_env, offsetof(CPUState, vscr)); |
|
6279 |
tcg_temp_free_i32(t); |
|
6276 |
p = gen_avr_ptr(rD(ctx->opcode)); |
|
6277 |
gen_helper_mtvscr(p); |
|
6278 |
tcg_temp_free_ptr(p); |
|
6280 | 6279 |
} |
6281 | 6280 |
|
6282 | 6281 |
/* Logical operations */ |
Also available in: Unified diff