[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] target-mips: save cpu state before calling MSA

From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH] target-mips: save cpu state before calling MSA load and store helpers
Date: Mon, 30 Mar 2015 12:01:38 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 03/16/2015 09:29 AM, Leon Alrae wrote:
> PC needs to be saved if an exception can be generated by an helper.
> This fixes a problem related to resuming the execution at unexpected address
> after an exception (caused by MSA load/store instruction) has been serviced.

Only if the helper doesn't use cpu_restore_state.

In this case, all of your do_##name memory routines should
instead use helper_[lb]e_*_mmu, which allows you to pass along
the mmu_idx (instead of switching on _kernel et al), and the
GETRA() value in the top-level helper.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]