Received: from eggs.gnu.org ([2001:4830:134:3::10]:39903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1gd0-0004ui-EB for qemu-devel@nongnu.org; Tue, 01 Nov 2016 17:29:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1gcx-0006xK-BR for qemu-devel@nongnu.org; Tue, 01 Nov 2016 17:29:54 -0400 Received: from mail-it0-x244.google.com ([2607:f8b0:4001:c0b::244]:36506) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c1gcx-0006wi-6Y for qemu-devel@nongnu.org; Tue, 01 Nov 2016 17:29:51 -0400 Received: by mail-it0-x244.google.com with SMTP id m138so4609260itm.3 for ; Tue, 01 Nov 2016 14:29:51 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Tue, 1 Nov 2016 15:29:43 -0600 Message-Id: <1478035787-16893-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 0/4] target-m68k areg writeback List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: laurent@vivier.eu Here's the patch I almost wrote in the email, followed by a cleanup that allows cmpm to be written "nicely". I can test this to some extent with the coldfire kernel, but of course coldfire can't excersise any of the tricky edge cases that m68000 can. I'm particularly interested in edge cases like mov.b a0@+, a0@+ movea a0@+, a0 movea a0, a0@- The first two are not really useful and likely not show up in normal code. The third may well do so; I think our current code gets it wrong, but this will get it right. r~ Laurent Vivier (1): target-m68k: add cmpm Richard Henderson (3): target-m68k: Delay autoinc writeback target-m68k: Split gen_lea and gen_ea target-m68k: Use gen_ea_mode in cmpm target-m68k/translate.c | 207 +++++++++++++++++++++++++++++++----------------- 1 file changed, 136 insertions(+), 71 deletions(-) -- 2.7.4