[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/4] hw/misc/a9scu: Report unimplemented accesses with qemu_log_m
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 4/4] hw/misc/a9scu: Report unimplemented accesses with qemu_log_mask(UNIMP) |
Date: |
Tue, 1 Sep 2020 16:41:00 +0200 |
Report unimplemented register accesses using qemu_log_mask(UNIMP).
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
hw/misc/a9scu.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/hw/misc/a9scu.c b/hw/misc/a9scu.c
index 47f948341f7..a375ebc9878 100644
--- a/hw/misc/a9scu.c
+++ b/hw/misc/a9scu.c
@@ -13,6 +13,7 @@
#include "hw/qdev-properties.h"
#include "migration/vmstate.h"
#include "qapi/error.h"
+#include "qemu/log.h"
#include "qemu/module.h"
#define A9_SCU_CPU_MAX 4
@@ -38,6 +39,8 @@ static uint64_t a9_scu_read(void *opaque, hwaddr offset,
case 0x54: /* SCU Non-secure Access Control Register */
/* unimplemented, fall through */
default:
+ qemu_log_mask(LOG_UNIMP, "%s: Unsupported offset 0x%"HWADDR_PRIx"\n",
+ __func__, offset);
return 0;
}
}
@@ -67,6 +70,9 @@ static void a9_scu_write(void *opaque, hwaddr offset,
case 0x54: /* SCU Non-secure Access Control Register */
/* unimplemented, fall through */
default:
+ qemu_log_mask(LOG_UNIMP, "%s: Unsupported offset 0x%"HWADDR_PRIx
+ " value 0x%"PRIx64"\n",
+ __func__, offset, value);
break;
}
}
--
2.26.2
- [PATCH 0/4] hw/misc/a9scu: Verify CPU count is valid and simplify a bit, Philippe Mathieu-Daudé, 2020/09/01
- [PATCH 1/4] hw/misc/a9scu: Do not allow invalid CPU count, Philippe Mathieu-Daudé, 2020/09/01
- [PATCH 2/4] hw/misc/a9scu: Simplify setting MemoryRegionOps::valid fields, Philippe Mathieu-Daudé, 2020/09/01
- [PATCH 3/4] hw/misc/a9scu: Simplify setting MemoryRegionOps::impl fields, Philippe Mathieu-Daudé, 2020/09/01
- [PATCH 4/4] hw/misc/a9scu: Report unimplemented accesses with qemu_log_mask(UNIMP),
Philippe Mathieu-Daudé <=
- Re: [PATCH 0/4] hw/misc/a9scu: Verify CPU count is valid and simplify a bit, Richard Henderson, 2020/09/01
- Re: [PATCH 0/4] hw/misc/a9scu: Verify CPU count is valid and simplify a bit, Peter Maydell, 2020/09/07