|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH v2 2/2] target/riscv: Add XVentanaCondOps custom extension |
Date: | Wed, 19 Jan 2022 12:17:49 +0100 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 |
On 13/1/22 21:20, Philipp Tomsich wrote:
This adds the decoder and translation for the XVentanaCondOps custom extension (vendor-defined by Ventana Micro Systems), which is documented at https://github.com/ventanamicro/ventana-custom-extensions/releases/download/v1.0.0/ventana-custom-extensions-v1.0.0.pdf This commit then also adds a guard-function (has_XVentanaCondOps_p) and the decoder function to the table of decoders, enabling the support for the XVentanaCondOps extension. Signed-off-by: Philipp Tomsich <philipp.tomsich@vrull.eu> --- Changes in v2: - Split off decode table into XVentanaCondOps.decode - Wire up XVentanaCondOps in the decoder-table
static void decode_opc(CPURISCVState *env, DisasContext *ctx, uint16_t opcode) { @@ -862,6 +874,7 @@ static void decode_opc(CPURISCVState *env, DisasContext *ctx, uint16_t opcode) bool (*decode_func)(DisasContext *, uint32_t); } decoders[] = { { always_true_p, decode_insn32 },
"always_true" is the first entry,
+ { has_XVentanaCondOps_p, decode_XVentanaCodeOps },
so is that ever called?
};/* Check for compressed insn */
[Prev in Thread] | Current Thread | [Next in Thread] |