From: Richard Henderson <rth@twiddle.net>
To: Laurent Vivier <laurent@vivier.eu>, qemu-devel@nongnu.org
Cc: Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [PATCH 1/7] target/m68k: add fscc.
Date: Sun, 25 Jun 2017 13:42:12 -0700 [thread overview]
Message-ID: <3c22490c-58ed-054c-9ac5-40acea5e0cef@twiddle.net> (raw)
In-Reply-To: <20170625192125.9992-2-laurent@vivier.eu>
On 06/25/2017 12:21 PM, Laurent Vivier wrote:
> + c->g1 = 0;
> + c->v2 = tcg_const_i32(0);
> + c->g2 = 1;
> + /* TODO: Raise BSUN exception. */
> fpsr = tcg_temp_new();
> gen_load_fcr(s, fpsr, M68K_FPSR);
> - l1 = gen_new_label();
> - /* TODO: Raise BSUN exception. */
> - /* Jump to l1 if condition is true. */
> - switch (insn & 0x3f) {
> + switch (cond) {
> case 0: /* False */
> case 16: /* Signaling False */
> + c->v1 = c->v2;
> + c->tcond = TCG_COND_NEVER;
> break;
> case 1: /* EQual Z */
> case 17: /* Signaling EQual Z */
> - tmp = tcg_temp_new();
> - tcg_gen_andi_i32(tmp, fpsr, FPSR_CC_Z);
> - tcg_gen_brcondi_i32(TCG_COND_NE, tmp, 0, l1);
> + c->v1 = tcg_temp_new();
> + c->g1 = 1;
g[12] means "global", i.e. don't free the temp in free_cond.
Which is not true of any of the temps that you allocate here.
r~
next prev parent reply other threads:[~2017-06-25 20:42 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-25 19:21 [Qemu-devel] [PATCH 0/7] target/m68k: implement 680x0 FPU (part 2) Laurent Vivier
2017-06-25 19:21 ` [Qemu-devel] [PATCH 1/7] target/m68k: add fscc Laurent Vivier
2017-06-25 20:42 ` Richard Henderson [this message]
2017-06-25 19:21 ` [Qemu-devel] [PATCH 2/7] target/m68k: add fmovecr Laurent Vivier
2017-06-26 18:15 ` Richard Henderson
2017-06-25 19:21 ` [Qemu-devel] [PATCH 3/7] target/m68k: add fsglmul and fsgldiv Laurent Vivier
2017-06-25 19:44 ` Philippe Mathieu-Daudé
2017-06-26 8:05 ` Laurent Vivier
2017-06-26 13:34 ` Richard Henderson
2017-06-25 19:21 ` [Qemu-devel] [PATCH 4/7] target/m68k: add explicit single and double precision operations Laurent Vivier
2017-06-26 18:26 ` Richard Henderson
2017-06-25 19:21 ` [Qemu-devel] [PATCH 5/7] softfloat: define floatx80_round() Laurent Vivier
2017-06-26 18:29 ` Richard Henderson
2017-06-26 19:07 ` Richard Henderson
2017-06-25 19:21 ` [Qemu-devel] [PATCH 6/7] target/m68k: add explicit single and double precision operations (part 2) Laurent Vivier
2017-06-26 18:30 ` Richard Henderson
2017-06-25 19:21 ` [Qemu-devel] [PATCH 7/7] target/m68k: add fmovem Laurent Vivier
2017-06-26 18:40 ` 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=3c22490c-58ed-054c-9ac5-40acea5e0cef@twiddle.net \
--to=rth@twiddle.net \
--cc=aurelien@aurel32.net \
--cc=laurent@vivier.eu \
--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).