Revision 931ff272 target-ppc/translate.c
b/target-ppc/translate.c | ||
---|---|---|
3310 | 3310 |
/* wait */ |
3311 | 3311 |
GEN_HANDLER(wait, 0x1F, 0x1E, 0x01, 0x03FFF801, PPC_WAIT) |
3312 | 3312 |
{ |
3313 |
TCGv_i32 t0 = tcg_temp_new_i32(); |
|
3314 |
tcg_gen_st_i32(t0, cpu_env, offsetof(CPUState, halted)); |
|
3315 |
tcg_temp_free_i32(t0); |
|
3313 | 3316 |
/* Stop translation, as the CPU is supposed to sleep from now */ |
3314 |
gen_op_wait(); |
|
3315 | 3317 |
GEN_EXCP(ctx, EXCP_HLT, 1); |
3316 | 3318 |
} |
3317 | 3319 |
|
Also available in: Unified diff