Skip to contentSkip to conversation

ARM instruction "srs" wrong behaviour

Qemu-devel Peter Maydell 2 participants 2 messages Jul 26, 2013 – Jun 20, 2016 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

** Changed in: qemu
Status: Confirmed => Fix Committed

Signature · 23 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1079080

Title:
  ARM instruction "srs" wrong behaviour

Status in QEMU:
  Fix Committed

Bug description:
  Quote from ARM Architecture Reference Manual ARMv7-A and ARMv7-R :
  "Store Return State stores the LR and SPSR of the current mode to the stack of a specified mode"

  Problem:
  When executing this instruction, the register stored is CPSR instead of SPSR.

  Context:
  Using QEMU 1.2.0 to simulate a Zynq application (processor Cortex-a9 mpcore) with the following command line:
  qemu-system-arm -M xilinx-zynq-a9 -m 512 -serial null -serial mon:stdio -dtb /home/vcesson/workspace/xilinx_zynq.dtb -kernel install/tests/io/serial/current/tests/serial2 -S -s -nographic

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1079080/+subscriptions
#2 lore raw
In reply to a message not in the archive

** Changed in: qemu
Status: Fix Committed => Fix Released

Signature · 23 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1079080

Title:
  ARM instruction "srs" wrong behaviour

Status in QEMU:
  Fix Released

Bug description:
  Quote from ARM Architecture Reference Manual ARMv7-A and ARMv7-R :
  "Store Return State stores the LR and SPSR of the current mode to the stack of a specified mode"

  Problem:
  When executing this instruction, the register stored is CPSR instead of SPSR.

  Context:
  Using QEMU 1.2.0 to simulate a Zynq application (processor Cortex-a9 mpcore) with the following command line:
  qemu-system-arm -M xilinx-zynq-a9 -m 512 -serial null -serial mon:stdio -dtb /home/vcesson/workspace/xilinx_zynq.dtb -kernel install/tests/io/serial/current/tests/serial2 -S -s -nographic

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1079080/+subscriptions