[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [Qemu-devel] [PATCH] hw/ssi/xilinx_spips: add lqspi_write
From: |
Francisco Iglesias |
Subject: |
Re: [Qemu-arm] [Qemu-devel] [PATCH] hw/ssi/xilinx_spips: add lqspi_write routine |
Date: |
Thu, 4 Jul 2019 21:12:35 +0200 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
Hi,
On [2019 Jul 04] Thu 11:42:54, Peter Maydell wrote:
> On Thu, 4 Jul 2019 at 11:11, Philippe Mathieu-Daudé <address@hidden> wrote:
> > However, looking at the datasheet 'UG1085 (v1.0) November 24, 2015',
> > Chapter 22: Quad-SPI Controller, I understand this region is only
> > accessible by the CPU in READ mode, as an AXI slave.
'Chapter 24: Quad-SPI controllers' in a newer UG1085 [1] says that
writes are ignored and that "All AXI writes generate an external AXI slave
error (SLVERR) on the write response channel" (when speaking of writes to
the linear address memory region). Philip's solution seems correct to me
with the minor change to return MEMTX_ERROR.
Best regards,
Francisco
[1]
https://www.xilinx.com/support/documentation/user_guides/ug1085-zynq-ultrascale-trm.pdf)
> >
> > So, if we model this, even logging LOG_GUEST_ERROR is incorrect, we
> > should trap some AXI bus access error.
>
> Well, that depends on what the decode and the device really do --
> often datasheets are pretty sloppy and just describe what
> software "should" do, not what the h/w does if software does
> odd things...
>
> thanks
> -- PMM