* [Qemu-devel] [PULL 0/1] M68k for 3.0 patches
@ 2018-07-02 10:28 Laurent Vivier
2018-07-02 10:28 ` [Qemu-devel] [PULL 1/1] target/m68k: correctly disassemble move16 Laurent Vivier
2018-07-02 13:57 ` [Qemu-devel] [PULL 0/1] M68k for 3.0 patches Peter Maydell
0 siblings, 2 replies; 3+ messages in thread
From: Laurent Vivier @ 2018-07-02 10:28 UTC (permalink / raw)
To: qemu-devel; +Cc: Laurent Vivier
The following changes since commit 281bd281222776229d5dbf84d1a5c6d8d9d2a34b:
Merge remote-tracking branch 'remotes/xtensa/tags/20180630-xtensa' into staging (2018-06-30 22:23:51 +0100)
are available in the Git repository at:
git://github.com/vivier/qemu-m68k.git tags/m68k-for-3.0-pull-request
for you to fetch changes up to d9345f1e1b1936b9ed7026b83091cf701f7ce07e:
target/m68k: correctly disassemble move16 (2018-07-02 12:02:00 +0200)
----------------------------------------------------------------
correctly disassemble move16
----------------------------------------------------------------
Laurent Vivier (1):
target/m68k: correctly disassemble move16
disas/m68k.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
--
2.14.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PULL 1/1] target/m68k: correctly disassemble move16
2018-07-02 10:28 [Qemu-devel] [PULL 0/1] M68k for 3.0 patches Laurent Vivier
@ 2018-07-02 10:28 ` Laurent Vivier
2018-07-02 13:57 ` [Qemu-devel] [PULL 0/1] M68k for 3.0 patches Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Laurent Vivier @ 2018-07-02 10:28 UTC (permalink / raw)
To: qemu-devel; +Cc: Laurent Vivier
"move16 %a0@+,%a1@" and "fmovel (cpid=3) %a0@-,%fpcr"
share the same opcode.
To fix that, backport the fix from binutils:
2005-11-10 Andreas Schwab <schwab@suse.de>
* m68k-dis.c (print_insn_m68k): Only match FPU insns with
coprocessor ID 1.
Reported-by: Thomas Huth <huth@tuxfamily.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Tested-by: Thomas Huth <huth@tuxfamily.org>
Message-Id: <20180625203559.21370-2-laurent@vivier.eu>
---
disas/m68k.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/disas/m68k.c b/disas/m68k.c
index 61b689ef3e..a687df437c 100644
--- a/disas/m68k.c
+++ b/disas/m68k.c
@@ -2017,6 +2017,20 @@ print_insn_m68k (bfd_vma memaddr, disassemble_info *info)
}
}
+ /* Don't match FPU insns with non-default coprocessor ID. */
+ if (*d == '\0')
+ {
+ for (d = opc->args; *d; d += 2)
+ {
+ if (d[0] == 'I')
+ {
+ val = fetch_arg (buffer, 'd', 3, info);
+ if (val != 1)
+ break;
+ }
+ }
+ }
+
if (*d == '\0')
if ((val = match_insn_m68k (memaddr, info, opc, & priv)))
return val;
--
2.14.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PULL 0/1] M68k for 3.0 patches
2018-07-02 10:28 [Qemu-devel] [PULL 0/1] M68k for 3.0 patches Laurent Vivier
2018-07-02 10:28 ` [Qemu-devel] [PULL 1/1] target/m68k: correctly disassemble move16 Laurent Vivier
@ 2018-07-02 13:57 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2018-07-02 13:57 UTC (permalink / raw)
To: Laurent Vivier; +Cc: QEMU Developers
On 2 July 2018 at 11:28, Laurent Vivier <laurent@vivier.eu> wrote:
> The following changes since commit 281bd281222776229d5dbf84d1a5c6d8d9d2a34b:
>
> Merge remote-tracking branch 'remotes/xtensa/tags/20180630-xtensa' into staging (2018-06-30 22:23:51 +0100)
>
> are available in the Git repository at:
>
> git://github.com/vivier/qemu-m68k.git tags/m68k-for-3.0-pull-request
>
> for you to fetch changes up to d9345f1e1b1936b9ed7026b83091cf701f7ce07e:
>
> target/m68k: correctly disassemble move16 (2018-07-02 12:02:00 +0200)
>
> ----------------------------------------------------------------
> correctly disassemble move16
>
> ----------------------------------------------------------------
Applied, thanks.
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-02 13:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-02 10:28 [Qemu-devel] [PULL 0/1] M68k for 3.0 patches Laurent Vivier
2018-07-02 10:28 ` [Qemu-devel] [PULL 1/1] target/m68k: correctly disassemble move16 Laurent Vivier
2018-07-02 13:57 ` [Qemu-devel] [PULL 0/1] M68k for 3.0 patches Peter Maydell
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).