Message ID | 20181025144644.15464-13-cota@braap.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [RFC,v4,01/71] cpu: convert queued work to a QSIMPLEQ | expand |
On 10/25/18 3:45 PM, Emilio G. Cota wrote: > Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com> > Signed-off-by: Emilio G. Cota <cota@braap.org> > --- > target/microblaze/translate.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
Emilio G. Cota <cota@braap.org> writes: > Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com> > Signed-off-by: Emilio G. Cota <cota@braap.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> > --- > target/microblaze/translate.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c > index 78ca265b04..008b84d456 100644 > --- a/target/microblaze/translate.c > +++ b/target/microblaze/translate.c > @@ -1233,9 +1233,7 @@ static void dec_br(DisasContext *dc) > LOG_DIS("sleep\n"); > > t_sync_flags(dc); > - tcg_gen_st_i32(tmp_1, cpu_env, > - -offsetof(MicroBlazeCPU, env) > - +offsetof(CPUState, halted)); > + gen_helper_cpu_halted_set(cpu_env, tmp_1); > tcg_gen_movi_i64(cpu_SR[SR_PC], dc->pc + 4); > gen_helper_raise_exception(cpu_env, tmp_hlt); > tcg_temp_free_i32(tmp_hlt); -- Alex Bennée
diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 78ca265b04..008b84d456 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -1233,9 +1233,7 @@ static void dec_br(DisasContext *dc) LOG_DIS("sleep\n"); t_sync_flags(dc); - tcg_gen_st_i32(tmp_1, cpu_env, - -offsetof(MicroBlazeCPU, env) - +offsetof(CPUState, halted)); + gen_helper_cpu_halted_set(cpu_env, tmp_1); tcg_gen_movi_i64(cpu_SR[SR_PC], dc->pc + 4); gen_helper_raise_exception(cpu_env, tmp_hlt); tcg_temp_free_i32(tmp_hlt);
Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com> Signed-off-by: Emilio G. Cota <cota@braap.org> --- target/microblaze/translate.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)