Skip to content

Conversation

@qwattash
Copy link
Contributor

@qwattash qwattash commented Jul 8, 2024

No description provided.

@qwattash qwattash requested review from arichardson and jrtc27 July 8, 2024 16:57
qwattash added 2 commits July 8, 2024 17:59
A previous merge moved the tcg cflags logic to the tcg_cpu_init_cflags
function. This is only called when a vcpu is started to precompute
cflags. In order to ensure that TB cflags are compared correctly,
curr_cflags must set CF_LOG_INSTR dynamically.
Use the hlt instruction with a custom set of immediates to issue
tracing commands. This mirrors the behaviour of the ARM FVP Tarmac
trace plugin, which uses the hlt instruction with configurable
immediate values to start and stop tracing.

Introduce the following hlt immediates:
 - 0xff00: start instruction tracing
 - 0xff01: stop instruction tracing
 - 0xff02: start user-mode instruction tracing
@qwattash qwattash force-pushed the morello-instr-tracing-nops branch from 4dae948 to 6f6f935 Compare July 8, 2024 17:00
Copy link
Member

@arichardson arichardson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not checked whether these conflict with anything but change LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants