From: Fabrice Bellard <fabrice@bellard.org>
To: blauwirbel@gmail.com
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [4485] Fix TCG alignment problems on Sparc64 host
Date: Sun, 18 May 2008 20:18:42 +0200 [thread overview]
Message-ID: <48307302.9020805@bellard.org> (raw)
In-Reply-To: <E1Jxddi-0004cs-Cg@cvs.savannah.gnu.org>
I don't understand why TCGLabel needs further alignment. For TCGPool,
the correct fix is either to use the gcc alignment attributes or to
change the type of data to long.
Regards,
Fabrice.
Blue Swirl wrote:
> Revision: 4485
> http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4485
> Author: blueswir1
> Date: 2008-05-18 07:49:05 +0000 (Sun, 18 May 2008)
>
> Log Message:
> -----------
> Fix TCG alignment problems on Sparc64 host
>
> Modified Paths:
> --------------
> trunk/tcg/tcg.h
>
> Modified: trunk/tcg/tcg.h
> ===================================================================
> --- trunk/tcg/tcg.h 2008-05-18 06:40:16 UTC (rev 4484)
> +++ trunk/tcg/tcg.h 2008-05-18 07:49:05 UTC (rev 4485)
> @@ -71,7 +71,7 @@
> } TCGRelocation;
>
> typedef struct TCGLabel {
> - int has_value;
> + long has_value; // long instead of int to enforce alignment
> union {
> tcg_target_ulong value;
> TCGRelocation *first_reloc;
> @@ -80,7 +80,7 @@
>
> typedef struct TCGPool {
> struct TCGPool *next;
> - int size;
> + long size; // long instead of int to enforce alignment
> uint8_t data[0];
> } TCGPool;
>
>
>
>
>
>
prev parent reply other threads:[~2008-05-18 18:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-18 7:49 [Qemu-devel] [4485] Fix TCG alignment problems on Sparc64 host Blue Swirl
2008-05-18 18:18 ` Fabrice Bellard [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=48307302.9020805@bellard.org \
--to=fabrice@bellard.org \
--cc=blauwirbel@gmail.com \
--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).