Re: [Qemu-devel] [PATCH v2 2/2] tests/microbit-test: add TWI stub device test

2019-01-10 Thread Stefan Hajnoczi
On Thu, Jan 10, 2019 at 10:12 AM Julia Suvorova via Qemu-devel wrote: > On 10.01.2019 12:48, Thomas Huth wrote: > > On 2019-01-10 10:40, Stefan Hajnoczi wrote: > > Any chance that you could use qemu_writel() right from the start here? > > That will make it easier to finally get rid of global_qtest

Re: [Qemu-devel] [PATCH v2 2/2] tests/microbit-test: add TWI stub device test

2019-01-10 Thread Julia Suvorova via Qemu-devel
On 10.01.2019 12:48, Thomas Huth wrote: On 2019-01-10 10:40, Stefan Hajnoczi wrote: This test verifies that we read back the expected I2C WHO_AM_I register values for the accelerometer/magnetometer. Signed-off-by: Stefan Hajnoczi --- tests/microbit-test.c | 44

Re: [Qemu-devel] [PATCH v2 2/2] tests/microbit-test: add TWI stub device test

2019-01-10 Thread Thomas Huth
On 2019-01-10 10:40, Stefan Hajnoczi wrote: > This test verifies that we read back the expected I2C WHO_AM_I register > values for the accelerometer/magnetometer. > > Signed-off-by: Stefan Hajnoczi > --- > tests/microbit-test.c | 44 +++ > 1 file changed,

[Qemu-devel] [PATCH v2 2/2] tests/microbit-test: add TWI stub device test

2019-01-10 Thread Stefan Hajnoczi
This test verifies that we read back the expected I2C WHO_AM_I register values for the accelerometer/magnetometer. Signed-off-by: Stefan Hajnoczi --- tests/microbit-test.c | 44 +++ 1 file changed, 44 insertions(+) diff --git a/tests/microbit-test.c b/tes