diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-25 13:10:33 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-31 21:32:43 +0200 |
commit | 8001d22b0c67b2fbf8f2cb7b2f44bd7b46b360c1 (patch) | |
tree | 18b78ef97ef9755adce78816b5f446eea38c50d7 /target | |
parent | 070a500cc0da70c1b4c62a6c95e41f0a1b19dc0b (diff) | |
download | qemu-8001d22b0c67b2fbf8f2cb7b2f44bd7b46b360c1.zip qemu-8001d22b0c67b2fbf8f2cb7b2f44bd7b46b360c1.tar.gz qemu-8001d22b0c67b2fbf8f2cb7b2f44bd7b46b360c1.tar.bz2 |
target/sparc: Log unimplemented ASI load/store accesses
When the cache-controller feature is not implemented,
log potential ASI access as unimplemented.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Clément Chigot <chigot@adacore.com>
Message-Id: <20250325123927.74939-4-philmd@linaro.org>
Diffstat (limited to 'target')
-rw-r--r-- | target/sparc/ldst_helper.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target/sparc/ldst_helper.c b/target/sparc/ldst_helper.c index b559afc..45882e2 100644 --- a/target/sparc/ldst_helper.c +++ b/target/sparc/ldst_helper.c @@ -600,6 +600,9 @@ uint64_t helper_ld_asi(CPUSPARCState *env, target_ulong addr, case 0x0C: /* Leon3 Date Cache config */ if (env->def.features & CPU_FEATURE_CACHE_CTRL) { ret = leon3_cache_control_ld(env, addr, size); + } else { + qemu_log_mask(LOG_UNIMP, "0x" TARGET_FMT_lx ": unimplemented" + " address, size: %d\n", addr, size); } break; case 0x01c00a00: /* MXCC control register */ @@ -816,6 +819,9 @@ void helper_st_asi(CPUSPARCState *env, target_ulong addr, uint64_t val, case 0x0C: /* Leon3 Date Cache config */ if (env->def.features & CPU_FEATURE_CACHE_CTRL) { leon3_cache_control_st(env, addr, val, size); + } else { + qemu_log_mask(LOG_UNIMP, "0x" TARGET_FMT_lx ": unimplemented" + " address, size: %d\n", addr, size); } break; |