[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH arm-devs v4 02/15] xilinx_spips: Make interrupts cle
From: |
peter . crosthwaite |
Subject: |
[Qemu-devel] [PATCH arm-devs v4 02/15] xilinx_spips: Make interrupts clear on read |
Date: |
Tue, 21 May 2013 16:30:06 +1000 |
From: Peter Crosthwaite <address@hidden>
By default these interrupts are clear on read.
Signed-off-by: Peter Crosthwaite <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Reviewed-by: Edgar E. Iglesias <address@hidden>
---
hw/ssi/xilinx_spips.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/ssi/xilinx_spips.c b/hw/ssi/xilinx_spips.c
index 734adf0..261d948 100644
--- a/hw/ssi/xilinx_spips.c
+++ b/hw/ssi/xilinx_spips.c
@@ -330,6 +330,10 @@ static uint64_t xilinx_spips_read(void *opaque, hwaddr
addr,
mask = 0x0002FFFF;
break;
case R_INTR_STATUS:
+ ret = s->regs[addr] & IXR_ALL;
+ s->regs[addr] = 0;
+ DB_PRINT("addr=" TARGET_FMT_plx " = %x\n", addr * 4, ret);
+ return ret;
case R_INTR_MASK:
mask = IXR_ALL;
break;
--
1.8.3.rc1.44.gb387c77.dirty
- [Qemu-devel] [PATCH arm-devs v4 00/15] Xilinx SPIPS fixes round 2, peter . crosthwaite, 2013/05/21
- [Qemu-devel] [PATCH arm-devs v4 01/15] xilinx_spips: seperate SPI and QSPI as two classes, peter . crosthwaite, 2013/05/21
- [Qemu-devel] [PATCH arm-devs v4 02/15] xilinx_spips: Make interrupts clear on read,
peter . crosthwaite <=
- [Qemu-devel] [PATCH arm-devs v4 03/15] xilinx_spips: Inhibit interrupts in LQSPI mode, peter . crosthwaite, 2013/05/21
- [Qemu-devel] [PATCH arm-devs v4 04/15] xilinx_spips: Add verbose LQSPI debug output, peter . crosthwaite, 2013/05/21
- [Qemu-devel] [PATCH arm-devs v4 05/15] xilinx_spips: Fix QSPI FIFO size, peter . crosthwaite, 2013/05/21
- [Qemu-devel] [PATCH arm-devs v4 06/15] xilinx_spips: Trash LQ page cache on mode change, peter . crosthwaite, 2013/05/21
- [Qemu-devel] [PATCH arm-devs v4 07/15] xilinx_spips: Add automatic start support, peter . crosthwaite, 2013/05/21
- [Qemu-devel] [PATCH arm-devs v4 09/15] xilinx_spips: lqspi: Dont touch config register, peter . crosthwaite, 2013/05/21
- [Qemu-devel] [PATCH arm-devs v4 10/15] xilinx_spips: Fix CTRL register RW bits, peter . crosthwaite, 2013/05/21
- [Qemu-devel] [PATCH arm-devs v4 11/15] xilinx_spips: Fix striping behaviour, peter . crosthwaite, 2013/05/21
- [Qemu-devel] [PATCH arm-devs v4 12/15] xilinx_spips: Debug msgs for Snoop state, peter . crosthwaite, 2013/05/21
- [Qemu-devel] [PATCH arm-devs v4 13/15] xilinx_spips: Multiple debug verbosity levels, peter . crosthwaite, 2013/05/21