From: Laurent Vivier <laurent@vivier.eu>
To: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>, qemu-devel@nongnu.org
Cc: huth@tuxfamily.org, dovgaluk@ispras.ru
Subject: Re: [Qemu-devel] [PATCH v2] m68k: implement movep instruction
Date: Tue, 6 Feb 2018 12:22:32 +0100 [thread overview]
Message-ID: <3aca546c-3af4-acfe-fc9b-905e55272e2d@vivier.eu> (raw)
In-Reply-To: <20180206111936.12592.68781.stgit@pasha-VirtualBox>
Le 06/02/2018 à 12:19, Pavel Dovgalyuk a écrit :
> This patch implements movep instruction. It moves data between a data register
> and alternate bytes within the address space starting at the location
> specified and incrementing by two.
>
> It was designed for the original 68000 and used in firmwares for
> interfacing the 8-bit peripherals through the 16-bit data bus.
> Without this patch opcode for this instruction is recognized as some bitop.
>
> Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
> Signed-off-by: Mihail Abakumov <mikhail.abakumov@ispras.ru>
>
> --
>
> v2: - disabled movep for Coldfire
> - fixed gen_store/load usage
> ---
> target/m68k/cpu.c | 3 +++
> target/m68k/cpu.h | 1 +
> target/m68k/translate.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 57 insertions(+)
>
> diff --git a/target/m68k/cpu.c b/target/m68k/cpu.c
> index 98919b3..2b38b9b 100644
> --- a/target/m68k/cpu.c
> +++ b/target/m68k/cpu.c
> @@ -113,6 +113,7 @@ static void m68000_cpu_initfn(Object *obj)
> m68k_set_feature(env, M68K_FEATURE_M68000);
> m68k_set_feature(env, M68K_FEATURE_USP);
> m68k_set_feature(env, M68K_FEATURE_WORD_INDEX);
> + m68k_set_feature(env, M68K_FEATURE_MOVEP);
> }
>
> static void m68020_cpu_initfn(Object *obj)
> @@ -135,6 +136,7 @@ static void m68020_cpu_initfn(Object *obj)
> m68k_set_feature(env, M68K_FEATURE_BKPT);
> m68k_set_feature(env, M68K_FEATURE_RTD);
> m68k_set_feature(env, M68K_FEATURE_CHK2);
> + m68k_set_feature(env, M68K_FEATURE_MOVEP);
> }
> #define m68030_cpu_initfn m68020_cpu_initfn
>
> @@ -145,6 +147,7 @@ static void m68040_cpu_initfn(Object *obj)
>
> m68020_cpu_initfn(obj);
> m68k_set_feature(env, M68K_FEATURE_M68040);
> + m68k_set_feature(env, M68K_FEATURE_MOVEP);
You don't need to add it here as it comes with m68020_cpu_initfn().
Thanks,
Laurent
prev parent reply other threads:[~2018-02-06 11:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-06 11:19 [Qemu-devel] [PATCH v2] m68k: implement movep instruction Pavel Dovgalyuk
2018-02-06 11:22 ` Laurent Vivier [this message]
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=3aca546c-3af4-acfe-fc9b-905e55272e2d@vivier.eu \
--to=laurent@vivier.eu \
--cc=Pavel.Dovgaluk@ispras.ru \
--cc=dovgaluk@ispras.ru \
--cc=huth@tuxfamily.org \
--cc=qemu-devel@nongnu.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).