Changeset af6cad4 in mainline
- Timestamp:
- 2009-10-26T15:26:01Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c638c07
- Parents:
- d7365604
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/arch/hadlbppp.py
rd7365604 raf6cad4 409 409 return result 410 410 411 def dump_frame( frame, outdir, var, archf):411 def dump_frame(directed_binds, 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 = 1 450 445 451 if ('protocol' in iface): 446 protocols.append(extend_bp(outname, iface['protocol'], iface['name'])) 452 proto = extend_bp(outname, iface['protocol'], iface['name']) 453 for _ in range(0, cnt): 454 protocols.append(proto) 455 447 456 for protocol in inherited_protocols(iface): 448 protocols.append(extend_bp(outname, protocol, iface['name'])) 457 proto = extend_bp(outname, protocol, iface['name']) 458 for _ in range(0, cnt): 459 protocols.append(proto) 449 460 else: 450 461 print "%s: Provided interface '%s' is undefined" % (frame['name'], provides['iface']) … … 639 650 break 640 651 652 directed_binds = direct_binds(flatten_binds(binds, delegates, subsumes)) 653 641 654 outname = os.path.join(outdir, "%s.archbp" % arch['name']) 642 655 if ((opt_bp) or (opt_ebp)): … … 648 661 649 662 for inst in insts: 650 dump_frame(inst['frame'], outdir, inst['var'], outf) 651 652 directed_binds = direct_binds(flatten_binds(binds, delegates, subsumes)) 663 dump_frame(directed_binds, inst['frame'], outdir, inst['var'], outf) 653 664 654 665 for dst, src in directed_binds.items():
Note:
See TracChangeset
for help on using the changeset viewer.