summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-10-18 14:11:39 +0100
committerBlue Swirl <blauwirbel@gmail.com>2012-10-20 07:56:22 +0000
commitfd271e81aa7334b973285f5c94a4f8ab265df683 (patch)
treeb7ab17a7305d09813de8ae3e08b292f864e29f7a
parentb1d9df90212984f8e78abc75152527a00d899f89 (diff)
downloadfocaccia-qemu-fd271e81aa7334b973285f5c94a4f8ab265df683.tar.gz
focaccia-qemu-fd271e81aa7334b973285f5c94a4f8ab265df683.zip
hw/pl190: Use LOG_GUEST_ERROR
If the guest attempts an offset to a nonexistent register, just
log this via LOG_GUEST_ERROR rather than killing QEMU with a hw_error.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--hw/pl190.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/pl190.c b/hw/pl190.c
index 7332f4dbae..961da5b3af 100644
--- a/hw/pl190.c
+++ b/hw/pl190.c
@@ -143,7 +143,8 @@ static uint64_t pl190_read(void *opaque, target_phys_addr_t offset,
     case 13: /* DEFVECTADDR */
         return s->vect_addr[16];
     default:
-        hw_error("pl190_read: Bad offset %x\n", (int)offset);
+        qemu_log_mask(LOG_GUEST_ERROR,
+                      "pl190_read: Bad offset %x\n", (int)offset);
         return 0;
     }
 }
@@ -202,7 +203,8 @@ static void pl190_write(void *opaque, target_phys_addr_t offset,
         }
         break;
     default:
-        hw_error("pl190_write: Bad offset %x\n", (int)offset);
+        qemu_log_mask(LOG_GUEST_ERROR,
+                     "pl190_write: Bad offset %x\n", (int)offset);
         return;
     }
     pl190_update(s);