[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-stable] [Qemu-devel] [PATCH qom-cpu 0/5] TCG code generation p
From: |
Andreas Färber |
Subject: |
Re: [Qemu-stable] [Qemu-devel] [PATCH qom-cpu 0/5] TCG code generation performance fix |
Date: |
Tue, 02 Jul 2013 22:13:41 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
Am 02.07.2013 21:59, schrieb Richard Henderson:
> On 07/02/2013 12:31 PM, Andreas Färber wrote:
>> Hello,
>>
>> As Richard explained, the purpose of having separate gen_intermediate_code()
>> and gen_intermediate_code_pc() functions per target is to compile-optimize
>> gen_intermediate_code_internal() for the non-_pc case.
>>
>> Multiple targets were using static rather than static inline though, fix
>> this.
>>
>> I've split these off from my refactorings so that we can backport them to
>> stable,
>> and I'm rebasing my argument refactoring patches on top.
>>
>> No actual performance changes have been benchmarked, these changes serve more
>> to align our targets as clear examples for new targets such as rl78 and bfin.
>
> All:
> Reviewed-by: Richard Henderson <address@hidden>
>
> Although we should probably do some benchmarking at some point to see if
> the duplicated code paths really do improve things over, say, unlikely().
I did wonder about unlikely() last night, but I thought that's just a
branch optimization whereas inline might avoid some branches in the
first place.
> But failing that we should at least have conformity of implementation.
Thanks, applied to qom-cpu (moving log_cpu_state to qom-cpu-next):
https://github.com/afaerber/qemu-cpu/commits/qom-cpu
(If maintainers want to ack/nack, please do.)
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
- [Qemu-stable] [PATCH qom-cpu 0/5] TCG code generation performance fix, Andreas Färber, 2013/07/02
- [Qemu-stable] [PATCH qom-cpu 1/5] target-cris: gen_intermediate_code_internal() should be inlined, Andreas Färber, 2013/07/02
- [Qemu-stable] [PATCH qom-cpu 3/5] target-microblaze: gen_intermediate_code_internal() should be inline, Andreas Färber, 2013/07/02
- [Qemu-stable] [PATCH qom-cpu 5/5] target-xtensa: gen_intermediate_code_internal() should be inline, Andreas Färber, 2013/07/02
- [Qemu-stable] [PATCH qom-cpu 4/5] target-moxie: gen_intermediate_code_internal() should be inline, Andreas Färber, 2013/07/02
- [Qemu-stable] [PATCH qom-cpu 2/5] target-lm32: gen_intermediate_code_internal() should be inline, Andreas Färber, 2013/07/02
- Re: [Qemu-stable] [Qemu-devel] [PATCH qom-cpu 0/5] TCG code generation performance fix, Richard Henderson, 2013/07/02
- Re: [Qemu-stable] [Qemu-devel] [PATCH qom-cpu 0/5] TCG code generation performance fix,
Andreas Färber <=