Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
target/riscv/vector_helper.c: clean up reference of MTYPE
There's no code using MTYPE, which was a concept used in older vector
implementation.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Message-Id: <20230608053517.4102648-1-xiao.w.wang@intel.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
  • Loading branch information
XiaoWang1772 authored and alistair23 committed Jun 13, 2023
1 parent b83e4f1 commit fba59e0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions target/riscv/vector_helper.c
Expand Up @@ -388,7 +388,7 @@ vext_ldst_us(void *vd, target_ulong base, CPURISCVState *env, uint32_t desc,

/*
* masked unit-stride load and store operation will be a special case of
* stride, stride = NF * sizeof (MTYPE)
* stride, stride = NF * sizeof (ETYPE)
*/

#define GEN_VEXT_LD_US(NAME, ETYPE, LOAD_FN) \
Expand Down Expand Up @@ -660,10 +660,6 @@ GEN_VEXT_LDFF(vle64ff_v, int64_t, lde_d)
#define DO_MAX(N, M) ((N) >= (M) ? (N) : (M))
#define DO_MIN(N, M) ((N) >= (M) ? (M) : (N))

/* Unsigned min/max */
#define DO_MAXU(N, M) DO_MAX((UMTYPE)N, (UMTYPE)M)
#define DO_MINU(N, M) DO_MIN((UMTYPE)N, (UMTYPE)M)

/*
* load and store whole register instructions
*/
Expand Down

0 comments on commit fba59e0

Please sign in to comment.