All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH-for-5.2] target/mips: Report unimplemented cache() operations
@ 2020-08-06 12:26 Philippe Mathieu-Daudé
  2020-08-06 18:01 ` Jiaxun Yang
  0 siblings, 1 reply; 10+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-08-06 12:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Aleksandar Rikalo, Philippe Mathieu-Daudé,
	Aleksandar Markovic, Huacai Chen, Aurelien Jarno

We only implement the Index[Store/Load]Tag from the 'cache' opcode.
Instead of ignoring the other cache operations, report them as
unimplemented.

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
 }
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-08-13 17:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-06 12:26 [PATCH-for-5.2] target/mips: Report unimplemented cache() operations Philippe Mathieu-Daudé
2020-08-06 18:01 ` Jiaxun Yang
2020-08-06 20:11   ` Philippe Mathieu-Daudé
2020-08-06 20:51     ` Peter Maydell
2020-08-06 21:37       ` Philippe Mathieu-Daudé
2020-08-10 17:21         ` Philippe Mathieu-Daudé
2020-08-13 10:58           ` Jiaxun Yang
2020-08-13 15:23           ` Jiaxun Yang
2020-08-13 17:59             ` Philippe Mathieu-Daudé
2020-08-07  7:57       ` Jiaxun Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.