On Thu, Oct 29, 2026 at 6:03 PM Brian Cain <[email protected]> wrote:
>
> Implement an HMX accumulator clear instruction - mxclracc.
>
> Signed-off-by: Brian Cain <[email protected]>
> ---
>  target/hexagon/gen_tcg_hmx.h | 13 +++++++++++++
>  target/hexagon/helper.h      |  2 ++
>  target/hexagon/genptr.c      |  1 +
>  target/hexagon/op_helper.c   | 10 ++++++++++
>  target/hexagon/translate.c   |  3 ++-
>  target/hexagon/hex_common.py |  2 ++
>  target/hexagon/meson.build   | 13 +++++++------
>  7 files changed, 37 insertions(+), 7 deletions(-)
>  create mode 100644 target/hexagon/gen_tcg_hmx.h
>
> diff --git a/target/hexagon/gen_tcg_hmx.h b/target/hexagon/gen_tcg_hmx.h
> new file mode 100644
> index 00000000000..d53d855af51
> --- /dev/null
> +++ b/target/hexagon/gen_tcg_hmx.h
> @@ -0,0 +1,13 @@
> +/*
> + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
> + *
> + * SPDX-License-Identifier: GPL-2.0-or-later
> + */
> +
> +#ifndef HEXAGON_GEN_TCG_HMX_H
> +#define HEXAGON_GEN_TCG_HMX_H
> +
> +#define fGEN_TCG_M8_mxclracc(SHORTCODE) \
> +    gen_helper_mxclracc(tcg_env)
> +
> +#endif
> diff --git a/target/hexagon/helper.h b/target/hexagon/helper.h
> index 8c49e798093..70453bae61f 100644
> --- a/target/hexagon/helper.h
> +++ b/target/hexagon/helper.h
> @@ -31,6 +31,8 @@ DEF_HELPER_FLAGS_4(vacsh_pred, TCG_CALL_NO_RWG_SE, s32, 
> env, s64, s64, s64)
>  DEF_HELPER_FLAGS_2(cabacdecbin_val, TCG_CALL_NO_RWG_SE, s64, s64, s64)
>  DEF_HELPER_FLAGS_2(cabacdecbin_pred, TCG_CALL_NO_RWG_SE, s32, s64, s64)
>
> +DEF_HELPER_1(mxclracc, void, env)
> +

The helper is only used in builds with idef-parser disabled. Since
idef-parser is enabled by default, mxclracc gets an empty
implementation in the default build.

Reply via email to