1/*
2 * RISC-V translation routines for compressed May-Be-Operation(zcmop).
3 *
4 * Copyright (c) 2024 Alibaba Group.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2 or later, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program.  If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#define REQUIRE_ZCMOP(ctx) do {           \
20    if (!ctx->cfg_ptr->ext_zcmop) {       \
21        return false;                     \
22    }                                     \
23} while (0)
24
25static bool trans_c_mop_n(DisasContext *ctx, arg_c_mop_n *a)
26{
27    REQUIRE_ZCMOP(ctx);
28    return true;
29}
30