|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] TCGv_i64 type? |
Date: | Sun, 13 Dec 2009 18:27:44 -0800 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Thunderbird/3.0b4 |
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 in Thread] | Current Thread | [Next in Thread] |