|
From: | Jiaxun Yang |
Subject: | Re: [PATCH-for-5.2] target/mips: Report unimplemented cache() operations |
Date: | Fri, 7 Aug 2020 02:01:36 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 |
在 2020/8/6 下午8:26, Philippe Mathieu-Daudé 写道:
We only implement the Index[Store/Load]Tag from the 'cache' opcode. Instead of ignoring the other cache operations, report them as unimplemented.
Hmm, I don't think we have anything to do with Invalidate/Writeback etc. opcodes
in QEMU. Why do we log this? Thanks. - Jiaxun
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> --- target/mips/op_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c index 9552b280e0..7f87e57c8e 100644 --- a/target/mips/op_helper.c +++ b/target/mips/op_helper.c @@ -1583,6 +1583,8 @@ void helper_cache(CPUMIPSState *env, target_ulong addr, uint32_t op) /* Index Load Tag */ memory_region_dispatch_read(env->itc_tag, index, &env->CP0_TagLo, MO_64, MEMTXATTRS_UNSPECIFIED); + } else { + qemu_log_mask(LOG_UNIMP, "cache %u\n", op); } #endif }
[Prev in Thread] | Current Thread | [Next in Thread] |