[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RCF PATCH 5/8] arm/nwfps: remove use of cpsr_write() a
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [RCF PATCH 5/8] arm/nwfps: remove use of cpsr_write() and set flags directly |
Date: |
Wed, 4 Jun 2014 14:10:03 +0100 |
On 4 June 2014 12:11, Alex Bennée <address@hidden> wrote:
> Peter Maydell writes:
>> This seems like it's clearly making things worse.
>> We definitely don't want to have to have code in
>> linux-user be aware of the "interesting" definitions
>> of our ZF/NF/CF/VF fields.
> <snip>
>
> You are right. I could make restore_state_from_spsr use a mask like the
> old cpsr_write did
But restore_state_from_spsr is the "just load state, no side effects"
function which machine.c is using, isn't it? I think part of the
problem here is that you're trying to have one function do
both the "read/write like the CPU would with all the modeswitch
stuff that entails" and also "side effect free access for state
save/restore".
thanks
-- PMM
- [Qemu-devel] [RCF PATCH 0/8] aarch64 migration fixes and psr cleanup, Alex Bennée, 2014/06/02
- [Qemu-devel] [RCF PATCH 1/8] target-arm/cpu.h: document various program state functions, Alex Bennée, 2014/06/02
- [Qemu-devel] [RCF PATCH 2/8] target-arm/cpu.h: implement common state save/restore, Alex Bennée, 2014/06/02
- [Qemu-devel] [RCF PATCH 3/8] target-arm: Support save/load for 64 bit CPUs, Alex Bennée, 2014/06/02
- [Qemu-devel] [RCF PATCH 4/8] target-arm: replace cpsr_read/pstate_read calls, Alex Bennée, 2014/06/02
- [Qemu-devel] [RCF PATCH 5/8] arm/nwfps: remove use of cpsr_write() and set flags directly, Alex Bennée, 2014/06/02
- [Qemu-devel] [RCF PATCH 6/8] linux-user/main.c: __kernel_cmpxchg set env->CF directly, Alex Bennée, 2014/06/02
- [Qemu-devel] [RCF PATCH 7/8] target-arm: remove last users of cpsr_write, Alex Bennée, 2014/06/02
- [Qemu-devel] [RCF PATCH 8/8] target-arm: remove final users of pstate_write, Alex Bennée, 2014/06/02