summaryrefslogtreecommitdiff
path: root/opcodes/lm32-desc.c
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/lm32-desc.c')
-rw-r--r--opcodes/lm32-desc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/opcodes/lm32-desc.c b/opcodes/lm32-desc.c
index 0a64e0aec2a..1b3e5651f64 100644
--- a/opcodes/lm32-desc.c
+++ b/opcodes/lm32-desc.c
@@ -849,7 +849,7 @@ lookup_mach_via_bfd_name (const CGEN_MACH *table, const char *name)
return table;
++table;
}
- abort ();
+ return NULL;
}
/* Subroutine of lm32_cgen_cpu_open to build the hardware table. */
@@ -1063,7 +1063,8 @@ lm32_cgen_cpu_open (enum cgen_cpu_open_arg arg_type, ...)
const CGEN_MACH *mach =
lookup_mach_via_bfd_name (lm32_cgen_mach_table, name);
- machs |= 1 << mach->num;
+ if (mach != NULL)
+ machs |= 1 << mach->num;
break;
}
case CGEN_CPU_OPEN_ENDIAN :