qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH][RFC] Run time TCGv size check for debugging
@ 2008-10-29 19:31 Blue Swirl
  2008-10-29 19:53 ` Paul Brook
  2008-10-29 21:37 ` [Qemu-devel] " Fabrice Bellard
  0 siblings, 2 replies; 12+ messages in thread
From: Blue Swirl @ 2008-10-29 19:31 UTC (permalink / raw)
  To: Fabrice Bellard, qemu-devel@nongnu.org

[-- Attachment #1: Type: text/plain, Size: 467 bytes --]

Hi,

When emulating a mixed 32/64 bit Qemu target CPUs it's easy to confuse
the TCGv size, passing 32 bit TCGv to a function expecting a 64 bit
one and vice versa. This patch adds a run time sanity check for TCGv
sizes.

Because a 32 bit Qemu host does not really use 64 bit TCGvs, the patch
is only functional on a 64 bit host. Of course also a pure 32 bit Qemu
target is not likely to suffer from TCGv size confusion.

Some use cases are not covered yet. Comments?

[-- Attachment #2: runtime_tcgv_size_check.diff --]
[-- Type: plain/text, Size: 15798 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-11-01 17:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-29 19:31 [Qemu-devel] [PATCH][RFC] Run time TCGv size check for debugging Blue Swirl
2008-10-29 19:53 ` Paul Brook
2008-10-29 20:06   ` Blue Swirl
2008-10-29 20:14     ` Paul Brook
2008-10-29 20:25       ` Blue Swirl
2008-10-29 21:37 ` [Qemu-devel] " Fabrice Bellard
2008-10-30  0:07   ` Paul Brook
2008-10-30  9:38     ` Fabrice Bellard
2008-11-01 12:00       ` Blue Swirl
2008-11-01 12:59         ` Paul Brook
2008-11-01 16:56           ` Paul Brook
2008-11-01 17:03             ` Blue Swirl

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).