diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2014-02-20 10:35:52 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-02-20 10:35:52 +0000 |
commit | 626187d86b037c89367f2f94785717b75e0e4440 (patch) | |
tree | 3eb1fd9eb5a5ef38dde9150c5111ee4ebe0249d9 /target-arm/translate-a64.c | |
parent | 1456364ff0900893f81f8d06fb1b42e5c2ad8a23 (diff) | |
download | qemu-626187d86b037c89367f2f94785717b75e0e4440.tar.gz |
target-arm: Log bad system register accesses with LOG_UNIMP
Log guest attempts to access unimplemented system registers via
the LOG_UNIMP reporting mechanism (for both the 32 bit and 64 bit
instruction sets). This is particularly useful for debugging
problems where the guest is trying to use a system register that
QEMU doesn't implement.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Diffstat (limited to 'target-arm/translate-a64.c')
-rw-r--r-- | target-arm/translate-a64.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index c96ba68520..f6500e5181 100644 --- a/target-arm/translate-a64.c +++ b/target-arm/translate-a64.c @@ -1177,7 +1177,12 @@ static void handle_sys(DisasContext *s, uint32_t insn, bool isread, crn, crm, op0, op1, op2)); if (!ri) { - /* Unknown register */ + /* Unknown register; this might be a guest error or a QEMU + * unimplemented feature. + */ + qemu_log_mask(LOG_UNIMP, "%s access to unsupported AArch64 " + "system register op0:%d op1:%d crn:%d crm:%d op2:%d\n", + isread ? "read" : "write", op0, op1, crn, crm, op2); unallocated_encoding(s); return; } |