Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
공지
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
1135 토론

Loops inside transactional regions in RTM (TSX)

jsg
초급자
806 조회수

Hi everyone,

I have a question about loops in TSX. Can I put loops inside a transactional region?

Example

xbegin();

...

   while(cond) i++;

..

xend();

Thank you very much,

0 포인트
2 응답
AdyT_Intel
중재자
806 조회수

Yes, you can put conditional code and loops inside a transaction.

0 포인트
jimdempseyatthecove
명예로운 기여자 III
806 조회수

I might add, if you use temporary variables, initialize them prior to entering the transaction, and then re-initialize them to same value before exit of transaction. The elison functionality will then void all writes to the temporary variable (inside the transaction).

Jim Dempsey

0 포인트
응답