[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 12/12] hw/versatile_i2c: Use LOG_GUEST_ERROR
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PATCH 12/12] hw/versatile_i2c: Use LOG_GUEST_ERROR |
Date: |
Thu, 25 Oct 2012 13:57:47 +0100 |
Use LOG_GUEST_ERROR to report bad guest accesses.
Signed-off-by: Peter Maydell <address@hidden>
---
hw/versatile_i2c.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/hw/versatile_i2c.c b/hw/versatile_i2c.c
index 44e7e40..ad71e9d 100644
--- a/hw/versatile_i2c.c
+++ b/hw/versatile_i2c.c
@@ -40,7 +40,8 @@ static uint64_t versatile_i2c_read(void *opaque, hwaddr
offset,
if (offset == 0) {
return (s->out & 1) | (s->in << 1);
} else {
- hw_error("%s: Bad offset 0x%x\n", __func__, (int)offset);
+ qemu_log_mask(LOG_GUEST_ERROR,
+ "%s: Bad offset 0x%x\n", __func__, (int)offset);
return -1;
}
}
@@ -58,7 +59,8 @@ static void versatile_i2c_write(void *opaque, hwaddr offset,
s->out &= ~value;
break;
default:
- hw_error("%s: Bad offset 0x%x\n", __func__, (int)offset);
+ qemu_log_mask(LOG_GUEST_ERROR,
+ "%s: Bad offset 0x%x\n", __func__, (int)offset);
}
bitbang_i2c_set(s->bitbang, BITBANG_I2C_SCL, (s->out & 1) != 0);
s->in = bitbang_i2c_set(s->bitbang, BITBANG_I2C_SDA, (s->out & 2) != 0);
--
1.7.9.5
- [Qemu-devel] [PATCH 00/12] use LOG_GUEST_ERROR in more ARM devices, Peter Maydell, 2012/10/25
- [Qemu-devel] [PATCH 03/12] hw/pl080: Use LOG_GUEST_ERROR and LOG_UNIMP, Peter Maydell, 2012/10/25
- [Qemu-devel] [PATCH 05/12] hw/pl190: Use LOG_UNIMP rather than hw_error(), Peter Maydell, 2012/10/25
- [Qemu-devel] [PATCH 11/12] hw/arm_l2x0: Use LOG_GUEST_ERROR, Peter Maydell, 2012/10/25
- [Qemu-devel] [PATCH 09/12] hw/armv7m_nvic: Use LOG_GUEST_ERROR and LOG_UNIMP, Peter Maydell, 2012/10/25
- [Qemu-devel] [PATCH 08/12] hw/arm_timer: Use LOG_GUEST_ERROR and LOG_UNIMP, Peter Maydell, 2012/10/25
- [Qemu-devel] [PATCH 01/12] hw/pl050: Use LOG_GUEST_ERROR, Peter Maydell, 2012/10/25
- [Qemu-devel] [PATCH 12/12] hw/versatile_i2c: Use LOG_GUEST_ERROR,
Peter Maydell <=
- [Qemu-devel] [PATCH 10/12] hw/arm_sysctl: Use LOG_GUEST_ERROR, Peter Maydell, 2012/10/25
- [Qemu-devel] [PATCH 06/12] hw/arm11mpcore: Use LOG_GUEST_ERROR rather than hw_error(), Peter Maydell, 2012/10/25
- [Qemu-devel] [PATCH 07/12] hw/arm_gic: Use LOG_GUEST_ERROR, Peter Maydell, 2012/10/25
- [Qemu-devel] [PATCH 04/12] hw/pl110: Use LOG_GUEST_ERROR rather than hw_error(), Peter Maydell, 2012/10/25
- [Qemu-devel] [PATCH 02/12] hw/pl061: Use LOG_GUEST_ERROR, Peter Maydell, 2012/10/25