target/mips: add Octeon COP2 crypto helper plumbing
Add the Octeon COP2 crypto helper source file and build it with the MIPS TCG target. This provides the common compilation unit for the COP2 engine helpers. The instruction dispatch itself remains fully decoded by decodetree, and operation selectors call per-operation helpers rather than a common selector-dispatch helper. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20260608-mips-octeon-missing-insns-v2-v16-2-daef7a0d8b04@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
James Hilliard committed
Jun 8, 2026 at 12:59 UTC
3bbe7ae19e2bd87302043a341b01d58b77786738
2 files changed
+17
target/mips/tcg/meson.build
+1
@@ -18,6 +18,7 @@ mips_ss.add(files(
18
'lmmi_helper.c',
19
'msa_helper.c',
20
'msa_translate.c',
21
+ 'octeon_crypto.c',
22
'op_helper.c',
23
'rel6_translate.c',
24
'translate.c',
target/mips/tcg/octeon_crypto.c
new
+16
@@ -0,0 +1,16 @@
1
+/*
2
+ * SPDX-License-Identifier: GPL-2.0-or-later
3
+ *
4
+ * MIPS Octeon crypto emulation helpers.
5
+ *
6
+ * Copyright (c) 2026 James Hilliard
7
+ */
8
+
9
+#include "qemu/osdep.h"
10
+#include "cpu.h"
11
+#include "internal.h"
12
+#include "exec/helper-proto.h"
13
+#include "crypto/aes.h"
14
+#include "crypto/sm4.h"
15
+#include "qemu/bitops.h"
16
+#include "qemu/host-utils.h"