aboutsummaryrefslogtreecommitdiff
path: root/sim/lm32/decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/lm32/decode.c')
-rw-r--r--sim/lm32/decode.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sim/lm32/decode.c b/sim/lm32/decode.c
index cdc4195..9819b7f 100644
--- a/sim/lm32/decode.c
+++ b/sim/lm32/decode.c
@@ -110,7 +110,8 @@ static const struct insn_sem lm32bf_insn_sem[] =
{ LM32_INSN_SCALL, LM32BF_INSN_SCALL, LM32BF_SFMT_BREAK },
};
-static const struct insn_sem lm32bf_insn_sem_invalid = {
+static const struct insn_sem lm32bf_insn_sem_invalid =
+{
VIRTUAL_INSN_X_INVALID, LM32BF_INSN_X_INVALID, LM32BF_SFMT_EMPTY
};
@@ -348,7 +349,7 @@ lm32bf_decode (SIM_CPU *current_cpu, IADDR pc,
extract_sfmt_empty:
{
const IDESC *idesc = &lm32bf_insn_data[itype];
-#define FLD(f) abuf->fields.fmt_empty.f
+#define FLD(f) abuf->fields.sfmt_empty.f
/* Record the fields for the semantic handler. */
@@ -814,7 +815,7 @@ lm32bf_decode (SIM_CPU *current_cpu, IADDR pc,
extract_sfmt_break:
{
const IDESC *idesc = &lm32bf_insn_data[itype];
-#define FLD(f) abuf->fields.fmt_empty.f
+#define FLD(f) abuf->fields.sfmt_empty.f
/* Record the fields for the semantic handler. */