On Thu, May 21, 2020 at 12:39:11PM -0400, Robert Foley wrote:
> From: "Emilio G. Cota" <c...@braap.org>
> 
> Cc: "Edgar E. Iglesias" <edgar.igles...@gmail.com>
> Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
> Reviewed-by: Alex Bennée <alex.ben...@linaro.org>
> Signed-off-by: Emilio G. Cota <c...@braap.org>
> Signed-off-by: Robert Foley <robert.fo...@linaro.org>


Reviewed-by: Edgar E. Iglesias <edgar.igles...@xilinx.com>


> ---
>  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 f6ff2591c3..c08a7f1d39 100644
> --- a/target/microblaze/translate.c
> +++ b/target/microblaze/translate.c
> @@ -1237,9 +1237,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);
> -- 
> 2.17.1
> 

Reply via email to