Re: [Qemu-devel] [Bug 1679358] [NEW] ARM: SCTLR fields not being preserved

2017-04-04 Thread Peter Maydell
On 3 April 2017 at 23:17, Yifan  wrote:
> There are fields in SCTLR that are RAO/SBOP or WI or in the case of the
> RR field, accessible only in secure mode. Currently it seems that qemu
> just propagates any write to SCTLR to the register and this screwed up
> in a bootloader that I am debugging.

Yes, we're a bit loose in QEMU on the handling of reserved bits.

Note that most of the SCTLR bits like this are RAO/SBOP or RAZ/SBZP,
so the guest should not be writing wrong values to them.

thanks
-- PMM



[Qemu-devel] [Bug 1679358] [NEW] ARM: SCTLR fields not being preserved

2017-04-03 Thread Yifan
Public bug reported:

There are fields in SCTLR that are RAO/SBOP or WI or in the case of the
RR field, accessible only in secure mode. Currently it seems that qemu
just propagates any write to SCTLR to the register and this screwed up
in a bootloader that I am debugging.

** Affects: qemu
 Importance: Undecided
 Status: New

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

Title:
  ARM: SCTLR fields not being preserved

Status in QEMU:
  New

Bug description:
  There are fields in SCTLR that are RAO/SBOP or WI or in the case of
  the RR field, accessible only in secure mode. Currently it seems that
  qemu just propagates any write to SCTLR to the register and this
  screwed up in a bootloader that I am debugging.

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