[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH RFC v2 0/5] qtest: tmp105-test BE fix for 1.4 and MM
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PATCH RFC v2 0/5] qtest: tmp105-test BE fix for 1.4 and MMIO support |
Date: |
Wed, 6 Feb 2013 19:33:25 +0100 |
Hello Anthony,
Here's my enhanced attempt to resolve our QTest endianness crisis. :)
Patch 1 fixes some minor type inconsistencies I noticed in qtest.c.
Patch 2 uses helpers to fix libi2c-omap.c asserting on Big Endian hosts.
Patch 3 improves the readability of assertions in tmp105-test.c.
Patch 4 adds debug output to tmp105.c to verify my changes.
Patch 5 reimplements my helpers for QTest.
Some notes on the implementation:
* Only readw and writew were tested, only on x86_64 so far. May need swapping.
* gtk-doc and protocol documentation is left out.
* I chose read[bwlq] over mmio_read[bwlq] since we're not using pio_in[bwl].
Patch 4 is kind of a v2 to my debug output revamp RFC.
Regards,
Andreas
v1 -> v2:
* Rename helpers from omap_i2c_{read,write}16() to {read,write}w().
* Clarify STAT vs. DATA, add an assertion to avoid unused variable warning.
* Add patch with debug output for tmp105.c.
* Add patch with strtoul() cleanups.
* Add proposal for QTest-level {read,write}w support.
Cc: Anthony Liguori <address@hidden>
Cc: Blue Swirl <address@hidden>
Cc: Alexander Graf <address@hidden>
Cc: Peter Maydell <address@hidden>
Andreas Färber (5):
qtest: Use strtoull() for uint64_t
libi2c-omap: Fix endianness dependency
tmp105-test: Combine assertions of 16-bit responses
tmp105: Add debug output
qtest: Add MMIO support
hw/tmp105.c | 27 +++++++++++++++++++++--
qtest.c | 61 +++++++++++++++++++++++++++++++++++++++++++++++----
tests/libi2c-omap.c | 53 +++++++++++++++++++++++++-------------------
tests/libqtest.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++
tests/libqtest.h | 56 ++++++++++++++++++++++++++++++++++++++++++++++
tests/tmp105-test.c | 8 +++----
6 Dateien geändert, 232 Zeilen hinzugefügt(+), 33 Zeilen entfernt(-)
--
1.7.10.4
- [Qemu-devel] [PATCH RFC v2 0/5] qtest: tmp105-test BE fix for 1.4 and MMIO support,
Andreas Färber <=
- [Qemu-devel] [PATCH for-1.4 v2 1/5] qtest: Use strtoull() for uint64_t, Andreas Färber, 2013/02/06
- [Qemu-devel] [PATCH for-1.4? v2 3/5] tmp105-test: Combine assertions of 16-bit responses, Andreas Färber, 2013/02/06
- [Qemu-devel] [RFC v2 5/5] qtest: Add MMIO support, Andreas Färber, 2013/02/06
- [Qemu-devel] [PATCH for-1.4 v2 2/5] libi2c-omap: Fix endianness dependency, Andreas Färber, 2013/02/06
- [Qemu-devel] [PATCH v2 4/5] tmp105: Add debug output, Andreas Färber, 2013/02/06
- Re: [Qemu-devel] [PATCH RFC v2 0/5] qtest: tmp105-test BE fix for 1.4 and MMIO support, Anthony Liguori, 2013/02/12