Added data_registers to part.

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@115 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 23 years ago
parent 7c63ea77c5
commit 172032462b

@ -29,6 +29,7 @@
#include <jtag/signal.h>
#include <jtag/instruction.h>
#include <jtag/data_register.h>
#include <jtag/bsbit.h>
typedef struct part part;
@ -38,6 +39,7 @@ struct part {
int instruction_length;
instruction *instructions;
instruction *active_instruction;
data_register *data_registers;
int boundary_length;
bsbit **bsbits;
tap_register *idr;

@ -40,6 +40,7 @@ part_alloc( void )
p->instruction_length = 0;
p->instructions = NULL;
p->active_instruction = NULL;
p->data_registers = NULL;
p->boundary_length = 0;
p->bsbits = NULL;
p->idr = NULL;
@ -71,6 +72,12 @@ part_free( part *p )
instruction_free( i );
}
while (p->data_registers) {
data_register *dr = p->data_registers;
p->data_registers = dr->next;
data_register_free( dr );
}
/* bsbits */
for (i = 0; i < p->boundary_length; i++)
bsbit_free( p->bsbits[i] );

Loading…
Cancel
Save