From: Richard Henderson <rth@twiddle.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] TCGv_i64 type?
Date: Sun, 13 Dec 2009 18:27:44 -0800 [thread overview]
Message-ID: <4B25A2A0.4060007@twiddle.net> (raw)
In-Reply-To: <fdaac4d50912131800i2be62122h9c46967159a599d8@mail.gmail.com>
On 12/13/2009 06:00 PM, Jun Koi wrote:
> I found that in tcg/tcg.h, we have following definitions:
>
> typedef int TCGv_i32;
> typedef int TCGv_i64;
>
> Is that correct? Why do we have the same definition for 64bit and 32
> bit types? Doesnt TCGv_i64 suppose to be 64 bit?
Look higher up in the DEBUG_TCGV section and you'll find
typedef struct
{
int i32;
} TCGv_i32;
typedef struct
{
int i64;
} TCGv_i64;
which are separate types for type checking purposes.
Both are "int" because at the TCG level these are register numbers.
They are separate types because they indicate 32-bit or 64-bit
quantities in the compiled code.
r~
prev parent reply other threads:[~2009-12-14 2:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-14 2:00 [Qemu-devel] TCGv_i64 type? Jun Koi
2009-12-14 2:27 ` Richard Henderson [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=4B25A2A0.4060007@twiddle.net \
--to=rth@twiddle.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.