* [Qemu-devel] TCGv_i64 type?
@ 2009-12-14 2:00 Jun Koi
2009-12-14 2:27 ` Richard Henderson
0 siblings, 1 reply; 2+ messages in thread
From: Jun Koi @ 2009-12-14 2:00 UTC (permalink / raw)
To: qemu-devel
Hi,
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?
Thanks,
Jun
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] TCGv_i64 type?
2009-12-14 2:00 [Qemu-devel] TCGv_i64 type? Jun Koi
@ 2009-12-14 2:27 ` Richard Henderson
0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2009-12-14 2:27 UTC (permalink / raw)
To: qemu-devel
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~
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-14 2:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-14 2:00 [Qemu-devel] TCGv_i64 type? Jun Koi
2009-12-14 2:27 ` Richard Henderson
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).