qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] tcg: Pass tb and index to tcg_gen_exit_tb separ


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH] tcg: Pass tb and index to tcg_gen_exit_tb separately
Date: Wed, 30 May 2018 18:27:18 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

On 05/30/2018 06:13 PM, Richard Henderson wrote:
> +void tcg_gen_exit_tb(TranslationBlock *tb, unsigned idx)
> +{
> +    uintptr_t val = (uintptr_t)tb + idx;
> +
> +    if (tb == NULL) {
> +        tcg_debug_assert(idx == 0);
> +    } else if (idx <= 1) {
> +        /* This is an exit following a goto_tb.  Verify that we have
> +           seen this numbered exit before, via tcg_gen_goto_tb.  */
> +        tcg_debug_assert(tcg_ctx->goto_tb_issue_mask & (1 << idx));

Ho hum -- #ifdef needed around this statement.
For some reason goto_tb_issue_mask is itself #ifdef'ed.


r~



reply via email to

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