Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Pierrick Bouvier <[email protected]>
  • Loading branch information
pbo-linaro committed Nov 28, 2024
1 parent 1d4efb9 commit ee256b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions accel/tcg/plugin-gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ static TCGv_i32 gen_cpu_index(void)
/*
* Optimize when we run with a single vcpu. All values using cpu_index,
* including scoreboard index, will be optimized out.
* In user-mode, a tb flush is guaranteed when creating a second thread (to
* honor the CF_PARALLEL flag). In system mode, we create all vcpus before
* generating any code, so we directly generate the correct code.
*/
if (qemu_plugin_num_vcpus() == 1) {
return tcg_constant_i32(0);
Expand Down

0 comments on commit ee256b2

Please sign in to comment.