[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 16/21] target-arm: switch to AREG0 free mode
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH 16/21] target-arm: switch to AREG0 free mode |
Date: |
Mon, 3 Sep 2012 18:58:48 +0000 |
On Mon, Sep 3, 2012 at 12:03 AM, Peter Maydell <address@hidden> wrote:
> On 3 September 2012 01:01, Peter Maydell <address@hidden> wrote:
>> On 2 September 2012 18:33, Blue Swirl <address@hidden> wrote:
>>> Add an explicit CPUState parameter instead of relying on AREG0
>>> and switch to AREG0 free mode.
>>>
>>> Signed-off-by: Blue Swirl <address@hidden>
>>> ---
>>> configure | 2 +-
>>> target-arm/Makefile.objs | 2 -
>>> target-arm/cpu.h | 10 ++-
>>> target-arm/helper.c | 8 +-
>>> target-arm/helper.h | 60 +++++++++---------
>>> target-arm/op_helper.c | 92 +++++++++++++---------------
>>> target-arm/translate.c | 148
>>> +++++++++++++++++++++++-----------------------
>>> 7 files changed, 158 insertions(+), 164 deletions(-)
>>
>> This is too big to easily review -- it's making a change to a lot
>> of helpers, and in each case that change affects three places
>> (callers, declaration, implementation). That'
>
> Sorry, finger slip meant I sent that half finished. To continue...
>
> That's quite hard to cross-reference when the patch is this big.
> I think it would be helpful if you could split it up into patches
> touching smaller groups of helpers at once rather than having a
> single patch that does them all at once.
For x86, Sparc and s390x I used the approach of splitting op_helper.c
to smaller files first. I didn't do it for ARM since
target-arm/op_helper.c is alread pretty small (<500 lines). It could
be split to saturating ops, condition code setting arithmetic ops and
misc ops, between 100 and 200 lines each. Would that be OK?
It looks like helper.c should be split too (maybe VFP, MMU, CPU init,
CPR), but that's starting to get beyond the scope of the series.
>
> thanks
> -- PMM
- Re: [Qemu-devel] [PATCH 05/21] target-s390x: split memory access helpers, (continued)
- [Qemu-devel] [PATCH 08/21] target-s390x: avoid AREG0 for integer helpers, Blue Swirl, 2012/09/02
- [Qemu-devel] [PATCH 07/21] target-s390x: avoid AREG0 for FPU helpers, Blue Swirl, 2012/09/02
- [Qemu-devel] [PATCH 09/21] target-s390x: avoid AREG0 for condition code helpers, Blue Swirl, 2012/09/02
- [Qemu-devel] [PATCH 10/21] target-s390x: avoid AREG0 for misc helpers, Blue Swirl, 2012/09/02
- [Qemu-devel] [PATCH 12/21] target-s390x: split helper.c, Blue Swirl, 2012/09/02
- [Qemu-devel] [PATCH 14/21] target-m68k: switch to AREG0 free mode, Blue Swirl, 2012/09/02
- [Qemu-devel] [PATCH 16/21] target-arm: switch to AREG0 free mode, Blue Swirl, 2012/09/02
Re: [Qemu-devel] [PATCH 16/21] target-arm: switch to AREG0 free mode, Peter Maydell, 2012/09/03
[Qemu-devel] [PATCH 17/21] target-microblaze: switch to AREG0 free mode, Blue Swirl, 2012/09/02
[Qemu-devel] [PATCH 18/21] target-cris: switch to AREG0 free mode, Blue Swirl, 2012/09/02