Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Morello instruction tracing nops #257

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Conversation

qwattash
Copy link
Contributor

@qwattash qwattash commented Jul 8, 2024

No description provided.

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.

2 participants