aboutsummaryrefslogtreecommitdiff
path: root/hw/pl061.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-10-30 07:45:09 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-10-30 07:45:09 +0000
commitabff909c9456103b54277318675fff8997fd71af (patch)
treed4ab6418198725de3c68af8485ae5f240787c3dc /hw/pl061.c
parentfbfecf43e9d354cfae04496563f7bb87d2ccde46 (diff)
downloadqemu-abff909c9456103b54277318675fff8997fd71af.zip
qemu-abff909c9456103b54277318675fff8997fd71af.tar.gz
qemu-abff909c9456103b54277318675fff8997fd71af.tar.bz2
hw/pl061: Use LOG_GUEST_ERROR
Use LOG_GUEST_ERROR to report guest attempts to access bad register offsets. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/pl061.c')
-rw-r--r--hw/pl061.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/pl061.c b/hw/pl061.c
index 7d182e7..f1ed5ce 100644
--- a/hw/pl061.c
+++ b/hw/pl061.c
@@ -164,7 +164,8 @@ static uint64_t pl061_read(void *opaque, hwaddr offset,
case 0x528: /* Analog mode select */
return s->amsel;
default:
- hw_error("pl061_read: Bad offset %x\n", (int)offset);
+ qemu_log_mask(LOG_GUEST_ERROR,
+ "pl061_read: Bad offset %x\n", (int)offset);
return 0;
}
}
@@ -239,7 +240,8 @@ static void pl061_write(void *opaque, hwaddr offset,
s->amsel = value & 0xff;
break;
default:
- hw_error("pl061_write: Bad offset %x\n", (int)offset);
+ qemu_log_mask(LOG_GUEST_ERROR,
+ "pl061_write: Bad offset %x\n", (int)offset);
}
pl061_update(s);
}