[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/2] tcg: add TB sanity checking
From: |
Michael Tokarev |
Subject: |
Re: [Qemu-devel] [PATCH 2/2] tcg: add TB sanity checking |
Date: |
Fri, 21 Sep 2012 12:37:02 +0400 |
User-agent: |
Mozilla/5.0 (X11; Linux i686 on x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6 |
On 21.09.2012 04:18, Max Filippov wrote:
> diff --git a/tcg/tcg.c b/tcg/tcg.c
> +#ifdef CONFIG_DEBUG_TCG
> +static void tcg_sanity_check(TCGContext *s)
#ifndef CONFIG_DEBUG_TCG
#define tcg_sanity_check(s) /*empty*/
#else
static void tcg_sanity_check(TCGContext *s)
> +{
[]
> +}
> +#endif
> @@ -2082,6 +2147,10 @@ static inline int tcg_gen_code_common(TCGContext *s,
> uint8_t *gen_code_buf,
> +#ifdef CONFIG_DEBUG_TCG
> + tcg_sanity_check(s);
> +#endif
And here we can drop the #ifdef. FWIW.
/mjt