mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
target-arm: Add write_type argument to cpsr_write()
Add an argument to cpsr_write() to indicate what kind of CPSR write is being requested, since the exact behaviour should differ for the different cases. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Sergey Fedorov <serge.fdrv@gmail.com> Message-id: 1455556977-3644-3-git-send-email-peter.maydell@linaro.org
This commit is contained in:
parent
235ea1f5c8
commit
50866ba5a2
10 changed files with 26 additions and 16 deletions
|
@ -105,7 +105,7 @@ static inline void writeRegister(unsigned int x, unsigned int y)
|
|||
|
||||
static inline void writeConditionCodes(unsigned int x)
|
||||
{
|
||||
cpsr_write(user_registers,x,CPSR_NZCV);
|
||||
cpsr_write(user_registers, x, CPSR_NZCV, CPSRWriteByInstr);
|
||||
}
|
||||
|
||||
#define ARM_REG_PC 15
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue