Changes in contrib/arch/hadlbppp.py [af6cad4:c088fd4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/arch/hadlbppp.py
raf6cad4 rc088fd4 409 409 return result 410 410 411 def dump_frame( directed_binds,frame, outdir, var, archf):411 def dump_frame(frame, outdir, var, archf): 412 412 "Dump Behavior Protocol of a given frame" 413 413 … … 443 443 iface = get_iface(provides['iface']) 444 444 if (not iface is None): 445 binds = directed_binds['%s.%s' % (var, provides['iface'])]446 if (not binds is None):447 cnt = len(binds)448 else:449 cnt = 1450 451 445 if ('protocol' in iface): 452 proto = extend_bp(outname, iface['protocol'], iface['name']) 453 for _ in range(0, cnt): 454 protocols.append(proto) 455 446 protocols.append(extend_bp(outname, iface['protocol'], iface['name'])) 456 447 for protocol in inherited_protocols(iface): 457 proto = extend_bp(outname, protocol, iface['name']) 458 for _ in range(0, cnt): 459 protocols.append(proto) 448 protocols.append(extend_bp(outname, protocol, iface['name'])) 460 449 else: 461 450 print "%s: Provided interface '%s' is undefined" % (frame['name'], provides['iface']) … … 650 639 break 651 640 652 directed_binds = direct_binds(flatten_binds(binds, delegates, subsumes))653 654 641 outname = os.path.join(outdir, "%s.archbp" % arch['name']) 655 642 if ((opt_bp) or (opt_ebp)): … … 661 648 662 649 for inst in insts: 663 dump_frame(directed_binds, inst['frame'], outdir, inst['var'], outf) 650 dump_frame(inst['frame'], outdir, inst['var'], outf) 651 652 directed_binds = direct_binds(flatten_binds(binds, delegates, subsumes)) 664 653 665 654 for dst, src in directed_binds.items():
Note:
See TracChangeset
for help on using the changeset viewer.