Revert "backup for AD and DA hybrid bridges will crash."
This reverts commit 2e7a4068f0.
This commit is contained in:
parent
2e7a4068f0
commit
0a5f6ea35a
|
|
@ -236,8 +236,6 @@ static void EVTbackup_state_data(
|
|||
Evt_State_t *tail;
|
||||
Evt_State_t *free_head;
|
||||
|
||||
|
||||
|
||||
/* Get pointers for quick access */
|
||||
state_data = ckt->evt->data.state;
|
||||
|
||||
|
|
@ -248,13 +246,6 @@ static void EVTbackup_state_data(
|
|||
/* Get the inst index */
|
||||
inst_index = state_data->modified_index[i];
|
||||
|
||||
MIFinstance* inst = ckt->evt->info.inst_table[inst_index]->inst_ptr;
|
||||
int type = inst->gen.GENmodPtr->GENmodType;
|
||||
|
||||
/* no backup for hybrid AD and DA states */
|
||||
if (type == 78 || type == 79)
|
||||
continue;
|
||||
|
||||
/* Scan data for this inst from last_step to determine new setting */
|
||||
/* for tail, and splice later data into the free list */
|
||||
state_ptr = state_data->last_step[inst_index];
|
||||
|
|
@ -285,12 +276,6 @@ static void EVTbackup_state_data(
|
|||
/* Update/compact the modified list */
|
||||
for(i = 0, j = 0; i < num_modified; i++) {
|
||||
inst_index = state_data->modified_index[i];
|
||||
MIFinstance* inst = ckt->evt->info.inst_table[inst_index]->inst_ptr;
|
||||
int type = inst->gen.GENmodPtr->GENmodType;
|
||||
|
||||
/* no backup for hybrid AD and DA states */
|
||||
if (type == 78 || type == 79)
|
||||
continue;
|
||||
/* If nothing after last_step, remove this index from the modified list */
|
||||
if((*(state_data->last_step[inst_index]))->next == NULL) {
|
||||
state_data->modified[inst_index] = MIF_FALSE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue