aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/sim-config.c')
-rw-r--r--sim/common/sim-config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/common/sim-config.c b/sim/common/sim-config.c
index 04ad95f..14236f3 100644
--- a/sim/common/sim-config.c
+++ b/sim/common/sim-config.c
@@ -20,6 +20,7 @@
#include "sim-main.h"
+#include "sim-assert.h"
#include "bfd.h"
@@ -135,6 +136,7 @@ SIM_RC
sim_config (SIM_DESC sd)
{
int prefered_target_byte_order;
+ SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
/* extract all relevant information */
if (STATE_PROG_BFD (sd) == NULL)