qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Vivier <laurent@vivier.eu>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Cc: Thomas Huth <huth@tuxfamily.org>
Subject: Re: [Qemu-devel] [PATCH v2 5/7] target/m68k: add moves
Date: Tue, 16 Jan 2018 18:48:11 +0100	[thread overview]
Message-ID: <8051fca4-c074-89c5-6f07-2d7e1520e625@vivier.eu> (raw)
In-Reply-To: <ca9dca07-3551-3e7b-cd1c-f1b41e1e3fc4@linaro.org>

Le 15/01/2018 à 19:37, Richard Henderson a écrit :
> On 01/12/2018 04:43 PM, Laurent Vivier wrote:
...
>> -    dc->user = (env->sr & SR_S) == 0;
>> +#if defined(CONFIG_SOFTMMU)
>> +    dc->user = (env->sr & SR_S) == 0 ? M68K_USER_FROM_MSR : 0;
>> +    dc->user |= (env->sfc & 4) == 0 ? M68K_USER_FROM_SFC : 0;
>> +    dc->user |= (env->dfc & 4) == 0 ? M68K_USER_FROM_DFC : 0;
>> +#endif
> 
> Really you should be extracting these from tb->flags.

Do I need to keep the dc->user variable?

> You also need to end the TB when assigning to SFC and DFC.  Otherwise the
> generated code is not in sync with the register contents.

I checked that and SFC and DFC are assigned by movec, and movec ends
with gen_lookup_tb() that set s->is_jmp to DISAS_UPDATE, and this forces
an exit from the loop and tcg_gen_exit_tb() (like move_to_sr()).

Thanks,
Laurent

  reply	other threads:[~2018-01-16 17:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-13  0:43 [Qemu-devel] [PATCH v2 0/7] target/m68k: supervisor mode (part 2) Laurent Vivier
2018-01-13  0:43 ` [Qemu-devel] [PATCH v2 1/7] accel/tcg: add size paremeter in tlb_fill() Laurent Vivier
2018-01-15 18:07   ` Richard Henderson
2018-01-13  0:43 ` [Qemu-devel] [PATCH v2 2/7] target/m68k: add MC68040 MMU Laurent Vivier
2018-01-15 18:16   ` Richard Henderson
2018-01-13  0:43 ` [Qemu-devel] [PATCH v2 3/7] target/m68k: add Transparent Translation Laurent Vivier
2018-01-13  0:43 ` [Qemu-devel] [PATCH v2 4/7] target/m68k: add index parameter to gen_load()/gen_store() and Co Laurent Vivier
2018-01-15 18:28   ` Richard Henderson
2018-01-13  0:43 ` [Qemu-devel] [PATCH v2 5/7] target/m68k: add moves Laurent Vivier
2018-01-15 18:37   ` Richard Henderson
2018-01-16 17:48     ` Laurent Vivier [this message]
2018-01-16 20:06       ` Richard Henderson
2018-01-13  0:43 ` [Qemu-devel] [PATCH v2 6/7] target/m68k: add pflush/ptest Laurent Vivier
2018-01-13  0:43 ` [Qemu-devel] [PATCH v2 7/7] target/m68k: add HMP command "info tlb" Laurent Vivier
2018-01-13  1:11 ` [Qemu-devel] [PATCH v2 0/7] target/m68k: supervisor mode (part 2) no-reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8051fca4-c074-89c5-6f07-2d7e1520e625@vivier.eu \
    --to=laurent@vivier.eu \
    --cc=huth@tuxfamily.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).