qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH RFC qom-cpu 23/41] target-xtensa: Change gen_int


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH RFC qom-cpu 23/41] target-xtensa: Change gen_intermediate_code_internal() arg to XtensaCPU
Date: Mon, 01 Jul 2013 11:03:32 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7

On 07/01/2013 10:51 AM, Andreas Färber wrote:
> I wonder, all targets seem to implement the same pattern of passing a
> hard-coded bool argument to their internal function.
> 
> Is there any reason not to have translate-all.c call the function with
> that true/false directly?

The idea is to avoid runtime checks for the rare search_pc case.

Instead we pass constants to inline functions and transform what would be
runtime checks into compile-time optimized code paths.



r~



reply via email to

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