riscv-non-isa / riscv-trace-spec

RISC-V Processor Trace Specification
https://jira.riscv.org/browse/RVG-88
Creative Commons Attribution 4.0 International
152 stars 47 forks source link

te_inst: format 3, subformat0 condistion: resync counter > max_resync, in Chapter 9 #113

Closed zhangdujiao closed 3 months ago

zhangdujiao commented 3 months ago

When the resync counter=max_resync and branch map not empty, te_inst: format 0/1/2 is sent. When the resync counter > max_resync, te_inst: format 3 subformat 0 is sent. When the resync counter=max_resync and branch map empty, no packet is sent based on the figure 2. What is the intention of the distinction? Can sync packet (te_inst: format 3 subformat 0) be sent once the resync counter=max_resync?

IainCRobertson commented 3 months ago

The fundamental requirement is to send a format 3 message when the resync counter exceeds the max_resync value. However, if there are any unreported branches, these have to be sent before the format 3 is generated, otherwise this information will be lost. So all that is happening here is that the cycle (or packet) before the format 3 is generated, the unreported branches are reported if there are any.

Iain

From: zhangdujiao @.> Sent: 04 June 2024 09:58 To: riscv-non-isa/riscv-trace-spec @.> Cc: Subscribed @.***> Subject: [riscv-non-isa/riscv-trace-spec] te_inst: format 3, subformat0 condistion: resync counter > max_resync, in Chapter 9 (Issue #113)

When the resync counter=max_resync and branch map not empty, te_inst: format 0/1/2 is sent. When the resync counter > max_resync, te_inst: format 3 subformat 0 is sent. When the resync counter=max_resync and branch map empty, no packet is sent based on the figure 2. What is the intention of the distinction? Can sync packet (te_inst: format 3 subformat 0) be sent once the resync counter=max_resync?

- Reply to this email directly, view it on GitHubhttps://github.com/riscv-non-isa/riscv-trace-spec/issues/113, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALQOPSQI3ELFTGQFCLJACN3ZFV6QBAVCNFSM6AAAAABIYB4W36VHI2DSMVQWIX3LMV43ASLTON2WKOZSGMZTEOJVHEYTIMY. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>