Skip to content

Commit 8001d22

Browse files
committed
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é <[email protected]> Reviewed-by: Clément Chigot <[email protected]> Message-Id: <[email protected]>
1 parent 070a500 commit 8001d22

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

target/sparc/ldst_helper.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,9 @@ uint64_t helper_ld_asi(CPUSPARCState *env, target_ulong addr,
600600
case 0x0C: /* Leon3 Date Cache config */
601601
if (env->def.features & CPU_FEATURE_CACHE_CTRL) {
602602
ret = leon3_cache_control_ld(env, addr, size);
603+
} else {
604+
qemu_log_mask(LOG_UNIMP, "0x" TARGET_FMT_lx ": unimplemented"
605+
" address, size: %d\n", addr, size);
603606
}
604607
break;
605608
case 0x01c00a00: /* MXCC control register */
@@ -816,6 +819,9 @@ void helper_st_asi(CPUSPARCState *env, target_ulong addr, uint64_t val,
816819
case 0x0C: /* Leon3 Date Cache config */
817820
if (env->def.features & CPU_FEATURE_CACHE_CTRL) {
818821
leon3_cache_control_st(env, addr, val, size);
822+
} else {
823+
qemu_log_mask(LOG_UNIMP, "0x" TARGET_FMT_lx ": unimplemented"
824+
" address, size: %d\n", addr, size);
819825
}
820826
break;
821827

0 commit comments

Comments
 (0)