Skip to content

Commit aa1878f

Browse files
trueptolemyphilmd
authored andcommitted
hw/cpu: Update the comments of nr_cores and nr_dies
In the nr_threads' comment, specify it represents the number of threads in the "core" to avoid confusion. Also add comment for nr_dies in CPUX86State. Signed-off-by: Zhao Liu <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Tested-by: Babu Moger <[email protected]> Tested-by: Yongwei Ma <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]> Message-ID: <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
1 parent 958ac3c commit aa1878f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/hw/core/cpu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ struct qemu_work_item;
408408
* See TranslationBlock::TCG CF_CLUSTER_MASK.
409409
* @tcg_cflags: Pre-computed cflags for this cpu.
410410
* @nr_cores: Number of cores within this CPU package.
411-
* @nr_threads: Number of threads within this CPU.
411+
* @nr_threads: Number of threads within this CPU core.
412412
* @running: #true if CPU is currently running (lockless).
413413
* @has_waiter: #true if a CPU is currently waiting for the cpu_exec_end;
414414
* valid under cpu_list_lock.

target/i386/cpu.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,6 +1882,7 @@ typedef struct CPUArchState {
18821882

18831883
TPRAccess tpr_access_type;
18841884

1885+
/* Number of dies within this CPU package. */
18851886
unsigned nr_dies;
18861887
} CPUX86State;
18871888

0 commit comments

Comments
 (0)