The transaction would have to be aborted, since the implementation would no longer be able to maintain a correct record of the read/write sets. This is which there's a long list of events that can cause a transaction to abort in an HTM implementation. You might be interested to read Intel's documentation on how to increase the likelihood transactions are not aborted. See more on slide 63.
What happens if B evicts A from cache?
The transaction would have to be aborted, since the implementation would no longer be able to maintain a correct record of the read/write sets. This is which there's a long list of events that can cause a transaction to abort in an HTM implementation. You might be interested to read Intel's documentation on how to increase the likelihood transactions are not aborted. See more on slide 63.