On 05/06/2017 04:14 AM, Aurelien Jarno wrote:
There is a confusion (and not only in the SH4 target) between tb->flags,
env->flags and ctx->flags. To avoid it, split ctx->flags into
ctx->tbflags and ctx->envflags. ctx->tbflags stays unchanged during the
whole TB translation, while ctx->envflags evolves and is kept in sync
with env->flags using TCG instructions. ctx->envflags now only contains
the part that of env->flags that is contained in the TB state, i.e. the
DELAY_SLOT* flags.

Signed-off-by: Aurelien Jarno<aurel...@aurel32.net>
---
  target/sh4/translate.c | 161 +++++++++++++++++++++++++------------------------
  1 file changed, 82 insertions(+), 79 deletions(-)

Reviewed-by: Richard Henderson <r...@twiddle.net>


r~

Reply via email to