On Tue, Mar 10, 2026 at 10:08 PM Brian Cain <[email protected]>
wrote:

> From: Brian Cain <[email protected]>
>
> Signed-off-by: Brian Cain <[email protected]>
> ---
>  target/hexagon/translate.h |   1 +
>  target/hexagon/translate.c | 102 ++++++++++++++++++++++++++++++++++++-
>  2 files changed, 101 insertions(+), 2 deletions(-)
>
> diff --git a/target/hexagon/translate.h b/target/hexagon/translate.h
> index 82b327312ec..4e090565aac 100644
> --- a/target/hexagon/translate.h
> +++ b/target/hexagon/translate.h
> @@ -85,6 +85,7 @@ typedef struct DisasContext {
>      TCGv branch_taken;
>      TCGv dczero_addr;
>      bool pcycle_enabled;
> +    bool pkt_ends_tb;
>

You don't need this as part of DisasContext


>      uint32_t num_cycles;
>  } DisasContext;
>
> diff --git a/target/hexagon/translate.c b/target/hexagon/translate.c
>
> -    if (pkt->pkt_has_cof) {
> +    if (ctx->pkt_ends_tb || ctx->base.is_jmp == DISAS_NORETURN) {
>

Just call pkt_ends_tb() here

Otherwise
Reviewed-by: Taylor Simpson <[email protected]>

Reply via email to