sim: use STATE_MAGIC helper
This commit is contained in:
parent
bc273e1751
commit
44ddb0c66a
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2016-01-04 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* sim-utils.c (sim_state_free): Change to STATE_MAGIC.
|
||||
|
||||
2016-01-04 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* cgen-scache.c (MAX): Delete.
|
||||
|
|
|
@ -101,7 +101,7 @@ sim_state_alloc (SIM_OPEN_KIND kind,
|
|||
void
|
||||
sim_state_free (SIM_DESC sd)
|
||||
{
|
||||
ASSERT (sd->base.magic == SIM_MAGIC_NUMBER);
|
||||
ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
|
||||
|
||||
#ifdef SIM_STATE_FREE
|
||||
SIM_STATE_FREE (sd);
|
||||
|
|
Loading…
Reference in a new issue