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>
This commit is contained in:
James Hilliard
2026-06-08 12:59:27 -06:00
committed by Philippe Mathieu-Daudé
parent 304df6d35e
commit 3bbe7ae19e
2 changed files with 17 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ mips_ss.add(files(
'lmmi_helper.c', 'lmmi_helper.c',
'msa_helper.c', 'msa_helper.c',
'msa_translate.c', 'msa_translate.c',
'octeon_crypto.c',
'op_helper.c', 'op_helper.c',
'rel6_translate.c', 'rel6_translate.c',
'translate.c', 'translate.c',

View File

@@ -0,0 +1,16 @@
/*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* MIPS Octeon crypto emulation helpers.
*
* Copyright (c) 2026 James Hilliard
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "internal.h"
#include "exec/helper-proto.h"
#include "crypto/aes.h"
#include "crypto/sm4.h"
#include "qemu/bitops.h"
#include "qemu/host-utils.h"