qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH][RFC] Run time TCGv size check for debugging


From: Blue Swirl
Subject: [Qemu-devel] [PATCH][RFC] Run time TCGv size check for debugging
Date: Wed, 29 Oct 2008 21:31:01 +0200

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: runtime_tcgv_size_check.diff
Description: plain/text


reply via email to

[Prev in Thread] Current Thread [Next in Thread]