From: Laurent Vivier <laurent@vivier.eu>
To: Richard Henderson <rth@twiddle.net>, qemu-devel@nongnu.org
Cc: schwab@linux-m68k.org, agraf@suse.de, gerg@uclinux.org
Subject: Re: [Qemu-devel] [PATCH v2 3/3] target-m68k: add cas/cas2 ops
Date: Thu, 3 Nov 2016 19:03:22 +0100 [thread overview]
Message-ID: <ec708d61-cfc5-55ea-e0e0-09f4576a6bc2@vivier.eu> (raw)
In-Reply-To: <5d3713b1-c98e-d165-35b7-44b5ec616ec5@twiddle.net>
Le 03/11/2016 à 17:36, Richard Henderson a écrit :
> On 11/02/2016 03:15 PM, Laurent Vivier wrote:
>> + if (c1 != l1) {
>> + env->cc_n = l1;
>> + env->cc_v = c1;
>> + } else {
>> + env->cc_n = l2;
>> + env->cc_v = c2;
>> + }
>> + env->cc_op = CC_OP_CMPL;
>> + env->dregs[Dc1] = deposit32(env->dregs[Dc1], 0, 16, l1);
>> + env->dregs[Dc2] = deposit32(env->dregs[Dc2], 0, 16, l2);
>
> CC_OP_CMPW for cas2w.
It was working because I have used helper_be_ldsw_mmu() to load values,
is it better to use helper_be_lduw_mmu with CC_OP_CMPW?
>> +DISAS_INSN(cas2l)
>> +{
> ...
>> + regs = tcg_const_i32(REG(ext2, 6) |
>> + (REG(ext1, 6) << 3) |
>> + (REG(ext2, 0) << 6) |
>> + (REG(ext1, 0) << 9));
>> + gen_helper_cas2w(cpu_env, regs, addr1, addr2);
>
> cas2l.
I should not use values with the high word equal to the low word to test
this...
Many thanks,
Laurent
next prev parent reply other threads:[~2016-11-03 18:03 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-02 21:15 [Qemu-devel] [PATCH v2 0/3] target-m68k: add movem, BCD and CAS instructions Laurent Vivier
2016-11-02 21:15 ` [Qemu-devel] [PATCH v2 1/3] target-m68k: add abcd/sbcd/nbcd Laurent Vivier
2016-11-03 16:16 ` Richard Henderson
2016-11-02 21:15 ` [Qemu-devel] [PATCH v2 2/3] target-m68k: implement 680x0 movem Laurent Vivier
2016-11-03 16:17 ` Richard Henderson
2016-11-03 19:47 ` Richard Henderson
2016-11-03 20:11 ` Laurent Vivier
2016-11-03 20:45 ` Richard Henderson
2016-11-03 20:47 ` Richard Henderson
2016-11-04 7:59 ` Laurent Vivier
2016-11-04 12:27 ` Richard Henderson
2016-11-02 21:15 ` [Qemu-devel] [PATCH v2 3/3] target-m68k: add cas/cas2 ops Laurent Vivier
2016-11-03 16:36 ` Richard Henderson
2016-11-03 18:03 ` Laurent Vivier [this message]
2016-11-03 19:20 ` Richard Henderson
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=ec708d61-cfc5-55ea-e0e0-09f4576a6bc2@vivier.eu \
--to=laurent@vivier.eu \
--cc=agraf@suse.de \
--cc=gerg@uclinux.org \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=schwab@linux-m68k.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).